We are currently performing imports using data from https requests in json format, we do so, by using extensively json_extract, great feature.
Now we have the situation, that we should perform an export over soap submitting the data in json format.
Of course we can develop a UDF which generates a json structure from a given Query using python. However, I was wondering whether there would also be a built in solution like for parsing json, that would make it much simpler.
In case we have to build it from scratch we would need to do some thinking, because we would like to have a generic approach, which could be used for different use-cases without the need to develop each time everything.
I guess a simple json could use as input a table/view object and just transform it into json using the table and column names.
It seems a bit more complicated when you have to develop nested json structures. We would probably have all the information in de-normalized form and then would need to handle it, somehow we would probably need to specify the json-path for each element, using similar syntax as in json_extract. We will need to think a bit about this.
Has anybody ever had this situation/requirement and how have you solved it?