{ “@timestrap”: 1728888888,"id": 123, "city" : [{ "name" : "beijing", "region" : "haidian" },{ "name" : "shanghai", "region" : "pudong" }]}
json 数据如上
我建表字段 ts,id cityname
在ROUTINE LOAD 中
"jsonpaths" = "["$.@timestrap","$.id","$.city[0].name"]"
如何取多级json数据 比如city下2个json ,我取第一个json的name 字段命名为cityname