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.
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.
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:
Alternately, if we want skip a field while loading (say, "_id" : ), is there a way to do this?
Compact JSON output is now supported, see my latest commit:
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.