另外一种扁平化、反扁平化json结构的方法(尽量使用“[]”)

{a:{b:1}} <==> {a[“b”]:1} 参考上一篇所做:

快速扁平化、反扁平化json结构 | Fastest way to flatten / un-flatten nested JSON objects

Here’s my much shorter implementation:

JSON.flatten hasn’t much changed (and I’m not sure whether yo 继续>