文件名称:flatjson:展平嵌套的JSON文档
文件大小:5KB
文件格式:ZIP
更新时间:2024-06-02 08:31:50
Go
flatjson flatjson包提供了一个编码器,用于获取一个值或现有的JSON字符串,并将其转换为平面映射或数组或键值对。 例如,以下文档可以展平为键值对数组: { " name " : " Bob Smith " , " address " : { " street " : " 123 Main Street " , " city " : " Boresville " , " zipcode " : 13943 }, " hobbies " : [ " tennis " , " coding " , " cooking " ] } [ [ " name " , " Bob Smith " ], [ " address.street " , " 123 Main Street " ],
【文件预览】:
flatjson-master
----flatjson.go(6KB)
----flatjson_test.go(2KB)
----cmd()
--------flatjson()
----.gitignore(6B)
----README.md(2KB)