Skip to content

Commit d83ff15

Browse files
authoredOct 19, 2019
Merge pull request #18 from manishrajmishra/master
Create parse_python.py
2 parents 0a0bb90 + c007f14 commit d83ff15

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎FORKED_FOR_TSHIRT/parse_python.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import json
2+
3+
# some JSON:
4+
x = '{ "name":"John", "age":30, "city":"New York"}'
5+
6+
# parse x:
7+
y = json.loads(x)
8+
9+
# the result is a Python dictionary:
10+
print(y["age"])

0 commit comments

Comments
 (0)
Please sign in to comment.