data=loadjson(fname)
parse a JSON (JavaScript Object Notation) file or string
authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) date: 2011/09/09 Nedialko Krouchev: http://www.mathworks.com/matlabcentral/fileexchange/25713 date: 2009/11/02 François Glineur: http://www.mathworks.com/matlabcentral/fileexchange/23393 date: 2009/03/22 Joel Feenstra: http://www.mathworks.com/matlabcentral/fileexchange/20565 date: 2008/07/03
input: fname: input file name, if fname contains "{}" or "[]", fname will be interpreted as a JSON string
output: dat: a cell array, where {...} blocks are converted into cell arrays, and [...] are converted to arrays
license: BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details
-- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab)