def parse_json(json_to_parse):
"""
Parse JSON string to OrderedDict and return
:param json_to_parse: string representation of JSON
:return: OrderedDict representation of JSON
"""
return json.JSONDecoder(object_pairs_hook=collections.OrderedDict).decode(json_to_parse.decode('utf-8'))
safetypy.py 文件源码
python
阅读 43
收藏 0
点赞 0
评论 0
评论列表
文章目录