Marks :10
: 0 | : 1
You are given a text in JSON format in the form of a string consisting of small and capital English alphabets, curly brackets, double inverted commas, commas, and no spaces present anywhere.
You are also given Q queries, where each query consists of a key of the given JSON object in the form of a string. For each query, you have to print the value of that key.
The first line of the input consists of the $$$s$$$ - the JSON string $$$(7 \leq |S| \leq 10^3)$$$ . The second line of input consists of a single integer $$$Q$$$ $$$(1 \leq Q \leq 10^3)$$$ the total number of queries. Each of the following $$$Q$$$ lines consist of a string $$$t$$$ - the key to be queried.
The output should consist of $$$Q$$$ lines - in the $$$i^{th}$$$ line the value corresponding to the $$$i^{th}$$$ query should be printed.
"Student":{"Name":"John","Age":"15"},"Class":"10" 3 Student.Name Student.Age Class
John 15 10
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.