Rank: 203 based on 423 downloads (last 30 days) and 1 file submitted
photo

Qianqian Fang

E-mail
Company/University
Harvard University

Personal Profile:

 

Watch this Author's files

 

Files Posted by Qianqian Fang
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 Nov 2014 Screenshot JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang decoder, toolbox 423 63
  • 4.61111
4.6 | 20 ratings
Comments and Ratings by Qianqian Fang View all
Updated File Comments Rating
22 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

a progress bar is now added to loadjson, see the latest svn commit:

http://sourceforge.net/p/iso2mesh/code/452/

use loadjson(...,'ShowProgress',1) to activate this feature.

19 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

Unfortunately, JSON comment using // or % is not part of the specification. A common workaround is to put comments into an element with special names, for example "_help" or "::comment::" etc, load the entire object, but not to use those values. JSONlab can handle special characters in the name fields, so you can name a comment quite distictively.

17 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

@tmartin

Compact JSON output is now supported, see my latest commit:

http://sourceforge.net/p/iso2mesh/code/449/

add ('Compact',1) to the savejson parameter list to enable this feature.

the only formatting white space left now is the space after the colon. I will remove them in my future updates.

17 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

@Nicolas

I added the requested help info in the latest commit, please see

http://sourceforge.net/p/iso2mesh/code/448/

17 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang

@Alessandro

thanks for pointing out this issue. It is indeed a bug related to the fast array parser that I added. I don't really have a good fix for this as it is related to how matlab eval() command handles an input string. However, I just added an option to loadjson that allows you to skip the fast parser for some array dimensions.

See my changes at:

http://sourceforge.net/p/iso2mesh/code/448/

your example can be properly handled using

B = loadjson('temp.json','FastArrayParser',2)

let me know if you see any addition issues related to this change.

Comments and Ratings on Qianqian Fang's Files View all
Updated File Comment by Comments Rating
22 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Qianqian Fang

a progress bar is now added to loadjson, see the latest svn commit:

http://sourceforge.net/p/iso2mesh/code/452/

use loadjson(...,'ShowProgress',1) to activate this feature.

21 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang b

Is it possible to output the record number on the prompt as it loads each record in the datafile? If the number of records are too large, can the cursor give any indication or percentage of the amount of file read or number of records read? Thanks.

19 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Qianqian Fang

Unfortunately, JSON comment using // or % is not part of the specification. A common workaround is to put comments into an element with special names, for example "_help" or "::comment::" etc, load the entire object, but not to use those values. JSONlab can handle special characters in the name fields, so you can name a comment quite distictively.

19 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang b

Hello Qianqian,

How to use % or // or anything else to comment a particular field in a json file so that loadjson will not give an error:
Error using loadjson>error_pos (line 431)
JSONparser:invalidFormat: String starting with " expected at position 3267:
30:02.091Z",

Alternately, if we want skip a field while loading (say, "_id" : ), is there a way to do this?

Thanks.

17 Nov 2014 JSONlab: a toolbox to encode/decode JSON files in MATLAB/Octave JSONlab is an open-source JSON/UBJSON encoder and decoder (parser) for MATLAB and Octave. Author: Qianqian Fang Qianqian Fang

@tmartin

Compact JSON output is now supported, see my latest commit:

http://sourceforge.net/p/iso2mesh/code/449/

add ('Compact',1) to the savejson parameter list to enable this feature.

the only formatting white space left now is the space after the colon. I will remove them in my future updates.

Contact us