FromJSON() usage
Hi,
I need to convert a JSON-structure loaded from an external API into an InfoTable that I return from my service. Now I'm creating the InfoTable from a DataShape and manually adding rows in a for each loop, which works well. Then I found this method which seem convenient:
Resources["InfoTableFunctions"].FromJSON(params);
I tried it but got complaints about a missing "dataShape" field in the JSON structure... The error makes sense but I can't figure out the right syntax for communicating which DataShape to use. The method documentation does not give any clues.
Can anybody share some example code that uses this method? Preferably in conjunction with LoadJSON 🙂
Kind Regards,
Anders

