Write a program which takes JSON as input and gives prettified JSON.

Write a program which takes JSON as input and gives prettified JSON.

a) You need to read JSON from STDIN. Input gives one line of uglified JSON.
b) Output should be formatted JSON.
Given two JSON objects, find the values of fields. whose values are different.
Eg. Input
{“Geeks”:”Test1″,”Are”:”hey”,”Cool”:”yeah”}
{“Geeks”:”Test1″,”Are”:”20″,”Cool”: [‘B’,’C’] }
Ans: Are:Cool
Answer shud be in above format ..

Author: Amit Khandelwal 1
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer