Saving an optimized JSON file

Hi all-

I'm trying to save an optimized JSON file, and I'm using the following syntax with 'true' as the third parameter to tell it to save as optimized rather than pretty.

save(myJSON, 'my.json', true);

However, when this line runs, the file saves as my.json.true rather than my.json. Am I doing something wrong, or is this a bug?

Thanks!

Tagged:

Answers

Sign In or Register to comment.