JSON input

Report a typo

Read a JSON string from the input and convert it into a Python object. Print the type of the object (using the method type()) and the object itself.

Sample Input 1:

{"greeting_eng" : "Hi!"}

Sample Output 1:

<class 'dict'>
{'greeting_eng': 'Hi!'}
Write a program in Python 3
import json


# write your code here
___

Create a free account to access the full topic