参考:
https://pythonguidecn.readthedocs.io/zh/latest/scenarios/serialization.html
在开始序列化数据之前,确定或决定在数据序列化期间如何结构化数据(扁平或嵌套)是非常重要的。 以下示例中显示了两种风格的差异。
扁平风格:
{ "Type" : "A", "field1": "value1", "field2": "value2", "field3": "value3" }
嵌套风格:
{"A"
{ "field1": "value1", "field2": "value2", "field3": "value3" } }
嵌套对象是什么:
https://www.elastic.co/guide/cn/elasticsearch/guide/current/nested-objects.html