Skip to content

javascript/object format question #1178

Answered by jorenbroekema
personable asked this question in Q&A
Discussion options

You must be logged in to vote

This format is using JSON.stringify to stringify the tokens object into what you see in your output.
It's not always easy to determine whether or not "" is required for an object property key, my suggestion would be to create a custom format that does the same thing but that also runs Prettier on the output which should get rid of any redundant quotes around property keys.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@personable
Comment options

Answer selected by personable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants