JSON is a serialization format based on js syntax. It’s not the same as JavaScript, it’s usually stricter. Those stricter rules are designed to make it easier to parse. In actual js, trailing commas are just fine (although i think some versions of internet explorer parsed them as nulls for some reason.)
JSON is a serialization format based on js syntax. It’s not the same as JavaScript, it’s usually stricter. Those stricter rules are designed to make it easier to parse. In actual js, trailing commas are just fine (although i think some versions of internet explorer parsed them as nulls for some reason.)