I want to format json-like fie to json
input:
{code: 0, msg: ‘ok’,}
expect output:
{"code": 0, "msg": "ok"}
ref: the vscode plugin fix json
https://marketplace.visualstudio.com/items?itemName=oliversturm.fix-json
Please sign in to leave a comment.
input:
{code: 0, msg: ‘ok’,}
expect output:
{"code": 0, "msg": "ok"}
ref: the vscode plugin fix json
https://marketplace.visualstudio.com/items?itemName=oliversturm.fix-json
Please sign in to leave a comment.
You can use the Wrap with double quotes quick fix (available on
Alt+Enter
) to fix the code:I have large amount data to fix, and this cannot remove the comma at the end of the line
Please vote for https://youtrack.jetbrains.com/issue/WEB-69077/Compliance-with-JSON-standard-inspection-provide-a-quick-fix-to-remove-trailing-commas to get notified of any updates.