JSON
json(JavaScript Object Notation)是一種輕量級(jí)的數(shù)據(jù)交換格式
字符串是JAON的表現(xiàn)形式
import json
json_str = '{"name":"aaron", "age":18}'
json.loads(json_str)
type(json_str)
json與Python數(shù)據(jù)類型
json & dict
json & list
string & str
number & int
number & float
true & True
false & False
null & Null
json字符串中字符串要使用雙引號(hào)“;
序列化、反序列化
json.dumps()
json.loads()
JSON 對(duì)象、JSON、JSON字符串
ECMASCRIPT的實(shí)現(xiàn)
json對(duì)象,javascript中的對(duì)象
json,跳出語言,一種數(shù)據(jù)格式