Function json_decode

Parses a JSON string

This function parses a JSON string and returns a cell array with the parsed data. JSON objects are converted to structures and JSON arrays are converted to cell arrays.



Credits: Based on the code of F. Glineur, 2009 (Available on Matlab File Exchange)