python:jsonprocessing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python:jsonprocessing [2016/08/03 09:06] – [Parse Json String (Json Decoder)] admin | python:jsonprocessing [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Simple Example ===== | ===== Simple Example ===== | ||
==== Parse Json String (Json Decoder)==== | ==== Parse Json String (Json Decoder)==== | ||
- | * Performs the following translations in decoding by default: | + | * Performs the following translations in **decoding** by default: |
^JSON^Python^ | ^JSON^Python^ | ||
|object|dict| | |object|dict| | ||
Line 13: | Line 14: | ||
|false|False| | |false|False| | ||
|null|None| | |null|None| | ||
+ | |||
* Simple example for parsing Json:< | * Simple example for parsing Json:< | ||
import json | import json | ||
Line 24: | Line 26: | ||
</ | </ | ||
==== Create Json String(Json Encoder) ==== | ==== Create Json String(Json Encoder) ==== | ||
+ | * Supports the following objects and types by default: | ||
+ | |||
+ | ^Python^JSON^ | ||
+ | |dict|object| | ||
+ | |list, tuple|array| | ||
+ | |str, unicode|string| | ||
+ | |int, long, float|number| | ||
+ | |True|true| | ||
+ | |False|false| | ||
+ | |None|null| | ||
+ | |||
+ | * Simple Example | ||
===== Json to csv ===== | ===== Json to csv ===== |
python/jsonprocessing.1470215197.txt.gz · Last modified: 2022/10/29 16:15 (external edit)