Search Comments and Ratings

go

   
Date File Comment by Comment Rating
13 Oct 2014 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra none

I get the occasional issue:

Warning: Control Character '\%' is not valid. See 'doc sprintf' for control characters valid in the format string.
> In parse_json>parse_string at 151
In parse_json>parse_value at 31
In parse_json>parse_name_value at 128
In parse_json>parse_object at 102
In parse_json>parse_value at 34
In parse_json at 16
In twitty>twitty.parseTwitterResponse at 434
In twitty>twitty.callTwitterAPI at 2014
In twitty>twitty.friendshipsCreate at 1211

10 Jul 2014 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Alceu Costa

04 Jul 2014 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Michael Weidman

Does precisely what it claims: perfect for me to quickly parse results from the Google Geocoding API with no headaches. Thanks, Joel!

25 Mar 2014 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Adeola Bannis

07 Oct 2013 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Yohai

does not handle improper json files, and can be stuck in an infinite loop.

For example, try

p=parse_json('"a":1')

01 Jul 2013 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra ashish dabral

Hi, I am using this parser for parsing a JSON containing a base64string of an image. Apparently, if the base64 is smaller than 100kb, the image is parsed easily but if the image string is big, say, from an image around 1mb size, matlab takes forever to process it. Could it be json parser or is it urlread that's slowing down the process. I just get a busy message(waiting for over an hour for my image to get procesed)

28 Jun 2013 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Suresh Deoda

Thanks

08 Oct 2012 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra John Reinert Nash

Very useful tool, works as described. Thank you for simplifying parsing web API returned data.

15 Jan 2012 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Qianqian Fang

FYI, an optimized JSON parser, JSONlab, based on this work is available at

http://www.mathworks.com/matlabcentral/fileexchange/33381

It is 10x to 100x faster. A JSON encoder is also provided in JSONlab.

22 Nov 2011 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Boyang Gao

This version cannot deal with JSON file with empty elements. Try http://www.mathworks.com/matlabcentral/fileexchange/23393 instead(also faster).

24 Jun 2011 Camera Manipulation Demonstrates camera manipulation with roll, pitch, and yaw. Author: Joel Feenstra Igor

10 Jan 2011 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Benjamin Ting

This code does not appear to work if the first { is preceeded by white space (either a space or carriage return).

03 Dec 2010 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Dan Massie

Works well, despite being a bit slow. Maybe it could be sped up with careful application of "regular expressions." Also, when you use the script, make sure the JSON string is a row vector of chars. Error may occur if string is a column vector of chars.

08 May 2010 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Ashish Uthama

22 Feb 2010 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Han Oostdijk

Thanks Joel,

just what I needed and it works fine.

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

Thanks Joel, I thought maybe there would be an easy workaround you could point me to. But the new file solves the issue, it is faster by some magnitude. In any case, thanks for your work.

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

I know that the code is slow, and I made no attempt to make the code fast, just correct. Fran├žois's version does seem to be faster, so if you need speed (and have a lot of strings), use his.

23 Mar 2009 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Fran├žois Glineur

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.

21 Mar 2009 Camera Manipulation Demonstrates camera manipulation with roll, pitch, and yaw. Author: Joel Feenstra Petter

Nothing special

16 Mar 2009 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Patrick Boert

Hallo Joel,

thanks for the work!

I'm trying to query the Chruchbase API and it seems to work fine. However, it takes ages for some queries to get parsed, e.g. I quit

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

after 1 hour. The profiler says that

json(1) = []; in parse_json>parse_string
json(1) = []; in parse_json>parse_object

make up about 90 % of the computational cost. Is there some easy way around this?

Best,
Patrick

08 Dec 2008 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra Joel Feenstra

The Google API limits it to 4 results. You can use the "cursor" information to fetch more results: matlab_results{1}.responseData.cursor

28 Nov 2008 JSON Parser Parses JSON strings into structures and cells Author: Joel Feenstra port tracker

Good work!
BTW - Any reason why it only return 4 value object from google? Is it because of the ajax api?

Thanks,

port

14 Apr 2008 Modified Parallel Port Driver Modified parallel port driver for the Data Acquisition Toolbox to fix issue with reading from the co Author: Joel Feenstra

This file address an issue related to setting the control pins to high impedance mode so that they can be properly read from.

14 Apr 2008 Modified Parallel Port Driver Modified parallel port driver for the Data Acquisition Toolbox to fix issue with reading from the co Author: Joel Feenstra

What sort of issues does this modified driver address?

Thanks.

Contact us