- Json和dict给类型数据比对
-注意:
Json true小写开头,false也是小写开头
dict True 大写开头,False也是大写开头
json | python |
---|---|
object | dict |
array | list |
string | unicode |
number(int) | int,long |
true | True |
false | False |
null | None |
- Dict转换成Json格式
- import json
- json.dumps(dict)
json | python |
---|---|
object | dict |
array | list |
string | unicode |
number(int) | int,long |
true | True |
false | False |
null | None |
- Dict转换成Json格式