Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape quotes in description for use in JSON #16

Open
ocean90 opened this issue Dec 9, 2020 · 0 comments
Open

Escape quotes in description for use in JSON #16

ocean90 opened this issue Dec 9, 2020 · 0 comments
Labels

Comments

@ocean90
Copy link
Member

ocean90 commented Dec 9, 2020

Quotes need to be escaped otherwise the JSON files won't be valid.

  stderr: 'npm ERR! code EJSONPARSE\n' +
    'npm ERR! file /package.json\n' +
    'npm ERR! JSON.parse Failed to parse json\n' +
    "npm ERR! JSON.parse Unexpected token S in JSON at position 88 while parsing near '...\n" +
    `npm ERR! JSON.parse   "description": ""Foo bar" campaign.",...'\n` +
    'npm ERR! JSON.parse Failed to parse package.json data.\n' +
    'npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.\n' +
@ocean90 ocean90 added the [Package] generate /packages/generate label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant