Parse JSON String to Structure
194 views (last 30 days)
Show older comments
Michael on 8 May 2015
Answered: Kunal Kandhari on 22 Jun 2021
I can use webread to parse json delivered by a webservice into a struct, but is there any way to do that same parsing if I have the JSON data in a string?
Kunal Kandhari on 22 Jun 2021
This can be done using :
For more reference:
fprintf("Original structure: \n");
fprintf("Original structure converted to string: \n");
fprintf("\n\nOriginal structure parsed back from string: \n");
Find more on JSON Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!