I have a new line delimited json with 3 fields: 2 of them are strings, the 3rd is a json object. Here is an example:
{"val1":"stringvalue1","val2":"stringvalue2","val3":{"i1":789,"i2":60.0,"i3":8}}
I would like to load the file directly with all 3 fields as STRING.
The 3rd field would be "{"i1":789,"i2":60.0,"i3":8}" here.
I don't know how many fields the JSON object in val3 will contain: it's different between each lines. Is there a way to just directly convert the JSON object to a string ? I tried specifying the column as string in the schema, but I got a parsing error while loading.
Thank you