I have an array in JavaScript that looks like this:
var pattern = [ ["C5", 3], , , , , , , , ["C5", 3], , , ]
I want to store it in a json file like this:
{
"pattern": [
["C5", 3], , , , , , , , ["C5", 3], , ,
]
}
JSONLint tells me this:
Parse error on line 6:
... ], , ,
---------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
So I understand I can't let the space between commas empty. What's similar to empty, but is accepted by JSON standards?
This pattern file is part of a Javascript Music Tracker I'm making that's similar to impulse tracker, and I want the json file to be as clean as possible.
nullis the "empty" value in JSON.''empty string0number. That will take one character instead of 2 for empty string.0 == null == ''[]at the time for simplicity. It worked and I haven't touched since... github.com/ericoporto/fangamk/tree/master/GameMusic