See how powerful FROM_FIELD() is. It helped me extract a simple JSON data structure from a field into it's own dimension table.
This is a simple example that works with flat json, meaning non-nested json hierarchies. However, you can use a combination of other functions like JSONGET() and JSONSET() to extract needed data. More examples on this to follow.
As an aside @ChristofSchwarz has a great article on a way to load data from JSON files (flat or nested) that I've been using recently... apparently there's a part 2 coming soon...
Thank you for the assistance. I did some tinkering and it works with the code you provided.
Initially I got the same error as earlier: Cannot open file '***' , but I got the idea of removing any rows with no data. Several rows had no values in the JSON field. Therefore I only loaded rows with valid JSON data. This did the trick and I get the parsed data as expected.
I know your post was originally focussed on using the From_Field() function - but you mention methods to load in JSON flat files - and we've been seeing this use case a lot lately. How do you get a JSON file to upload into a Qlik SaaS tenant DataFiles folder within a space? If I try that I get the 'this file type is not supported' error message. Is there a trick to get around this - like changing the file ext for example? Or would you need to store the JSON files outside of Qlik Cloud?