how to extract json array as table from mysql text column when number of json objects in array is unknown?
问题 Is there a way to extract data from a text column containing json arrays with a varying number of json objects into a table? For example if I... CREATE TABLE tableWithJsonStr (location TEXT, jsonStr TEXT); INSERT INTO tableWithJsonStr VALUES ('Home', '[{"animalId":"1","type":"dog", "color":"white","isPet":"1"},{"animalId":"2","type":"cat", "color":"brown","isPet":"1"}]'), ('Farm', '[{"animalId":"8","type":"cow", "color":"brown","isPet":"0"}, {"animalId":"33","type":"pig", "color":"pink",