Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17031

When adding a JSON "Custom file" double quotes are added breaking syntax

XMLWordPrintable

      When adding a JSON "Custom file" double quotes are added before the first and last squiggly brackets and syntax breaks.

      For example, when adding the following composer.json to install mockery in a project,

      {
      "require":

      { "mockery/mockery": "dev-master" }

      }

      first and last quotes are added like,

      "{
      "require":

      { "mockery/mockery": "dev-master" }

      }"

      and when running "php composer.phar install" it fails with,

      [Seld\JsonLint\ParsingException]
      "composer.json" does not contain valid JSON

            domi Dominik Bartholdi
            amoreton Agustín Moretón
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: