Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.
Task
For each query, you have to print the value of that key.
Example
Assumption
text: "Student":("Name":"John", "Age": "15"), "Class":"10"
Q3
queries: ["Student.Name", "Student.Age", "Class"]
Approach
For the first query, the answer is John.
For the second query, the answer is 15.
For the third query, the answer is 10.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

ISBN: 133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions