Skip to content

Escape quotes in description for use in JSON #16

@ocean90

Description

@ocean90

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' +

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions