diff --git a/Python/json parsing.py b/Python/json parsing.py new file mode 100644 index 00000000..68d3fc5e --- /dev/null +++ b/Python/json parsing.py @@ -0,0 +1,19 @@ +import json + +input = '''[ + { "id" : "001", + "x" : "2", + "name" : "Chuck" + }, + { "id" : "009", + "x" : "2", + "name" : "Duck" + } +]''' + +info = json.loads(input) + +print('User count:', len(info)) +print(info) +for item in info: + print(item) \ No newline at end of file