python:jsonprocessing
This is an old revision of the document!
Table of Contents
Python Json
Simple Example
- Simple example for parsing Json:
import json json_string = '{"first_name": "Guido", "last_name":"Rossum"}' parsed_json = json.loads(json_string) print parsed_json
output:return python object
{u'first_name': u'Guido', u'last_name': u'Rossum'}
And we can access the property first_name with command:
print parsed_json['first_name']
Json to csv
python/jsonprocessing.1470214472.txt.gz · Last modified: 2022/10/29 16:15 (external edit)