JSONArray转多行JSON
先通过explode把原数据变成n行数据,然后再用get_json_object去解析 select ss.json_col from ( select split(regexp_replace(regexp_extract('需要解析的jsonArray', '^\\[(.+)\\]$',1) ,'\\}\\,\\{', '\\}\\|\\|\\{'), '\\|\\|') as json_str from json_array_table ) pp lateral view explode(pp.json_str) ss as json_col; 实例: select ss.json_col from ( select split(regexp_replace(regexp_extract('[{"time":1582487998465,"_track_id":1358410713,"event":"joyLinkClick","_flush_time":1582488009148,"distinct_id":"6342133","properties":{"$os_version":"12.4.5","$device_id":"FCF68CFD-1F1A-4C2C-BA67-AD556C4EB125","app_name":"查悦社保","$carrier":"中国移动","