Rank: 1232 based on 89 downloads (last 30 days) and 1 file submitted
photo

François Glineur

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by François
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur json, cell arrays, cells, javascript, parser 89 11
  • 5.0
5.0 | 3 ratings
Comments and Ratings by François View all
Updated File Comments Rating
21 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur

Rob, the problem is caused by field "526A", which MATLAB cannot accept because field names in MATLAB must start with a letter. I will update the parser to convert invalid field names into acceptable ones.

21 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur

Rob, have you checked that the argument you pass to parse_json is a string ? The easiest way to convert the contents of a file into a string is to use the function fileread, as in this example :

s = fileread('file.json');
res = parse_json(s);

23 Mar 2009 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra

An alternative parser with faster handling of strings is available at http://www.mathworks.com/matlabcentral/fileexchange/23393
(another JSON Parser). For example, running the example above

companies=parse_json(urlread('http://api.crunchbase.com/v/1/companies.js'));

with it now takes less than 30 seconds.

Comments and Ratings on François' Files View all
Updated File Comment by Comments Rating
24 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur naveen, naini

thanks again

23 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur Newman, Rob

François, I just downloaded the latest version and the problem still persists. Also, the file change time for parse_json.m is May 19, 2009 which is the same as the original (I think).

22 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur Newman, Rob

And thanks again!

22 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur Newman, Rob

I mean a real limitation in Matlab - NOT your script :)

21 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur Glineur, François

Rob, the problem is caused by field "526A", which MATLAB cannot accept because field names in MATLAB must start with a letter. I will update the parser to convert invalid field names into acceptable ones.

Top Tags Applied by François
cell arrays, cells, javascript, json, parser
Files Tagged by François
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jul 2009 (another) JSON Parser Parses JSON strings into structures and cells. Author: François Glineur json, cell arrays, cells, javascript, parser 89 11
  • 5.0
5.0 | 3 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com