Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Make "JSON" snippets valid JSON #11196

Closed
wants to merge 1 commit into from
Closed

Make "JSON" snippets valid JSON #11196

wants to merge 1 commit into from

Conversation

s100
Copy link
Contributor

@s100 s100 commented Jan 18, 2016

Documentation for package.json states that it "must be actual JSON, not just a JavaScript object literal".

Documentation for `package.json` [states](https://docs.npmjs.com/files/package.json) that it "must be actual JSON, not just a JavaScript object literal".
@iarna
Copy link
Contributor

iarna commented Jan 20, 2016

This looks good to me

@iarna iarna added this to the next-next milestone Jan 20, 2016
zkat pushed a commit that referenced this pull request Jan 28, 2016
Documentation for `package.json` [states](https://docs.npmjs.com/files/package.json)
that it "must be actual JSON, not just a JavaScript object literal".

PR-URL: #11196
Credit: @s100
iarna pushed a commit that referenced this pull request Jan 28, 2016
Documentation for `package.json`
[states](https://docs.npmjs.com/files/package.json) that it "must be actual
JSON, not just a JavaScript object literal".

PR-URL: #11196
Credit: @s100
Reviewed-By: @iarna
@zkat
Copy link
Contributor

zkat commented Jan 29, 2016

This was merged and included in npm@3.7.0 and npm@2.14.17. Thanks!

@zkat zkat closed this Jan 29, 2016
@robludwig
Copy link
Contributor

This is still not valid JSON, the versions field in lines 47-57 is an array but uses curly object braces instead of angled array brackets.

@s100
Copy link
Contributor Author

s100 commented Feb 5, 2016

Well, whoops.

robludwig added a commit to robludwig/npm that referenced this pull request Feb 8, 2016
Fix one additional invalid JSON error in original patch.
zkat pushed a commit that referenced this pull request Mar 3, 2016
Followup PR #11196 with valid JSON

PR-URL: #11474
Credit: @robludwig
Reviewed-By: @iarna
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants