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

We should not foster and propagate wrong concepts to programmers #16

Merged
merged 1 commit into from
May 9, 2022

Conversation

KennethKinLum
Copy link
Contributor

@KennethKinLum KennethKinLum commented Mar 13, 2021

the .json() is to parse JSON (in the form of a string or text), and returns a JavaScript object.

It DOES NOT return JSON. It returns data, in the form of a JavaScript object.

There are programmers coming up on StackOverflow, asking about a JavaScript object but calling it a json.

It is very important. .json() is not to return JSON. .json() is to parse JSON and return data, in the form of a JavaScript object. We should not foster and propagate wrong concepts to thousands and millions of programmers.

the `.json()` is to parse JSON (string), and returns a JavaScript **object**.

It DOES NOT return JSON. It returns data, in the form of a JavaScript object.

There are programmers coming up, asking about a JavaScript object but calling it a json.

`.json()` is not to return JSON. `.json()` is to parse JSON and return data, in the form of a JavaScript object.  We should not foster and propagate wrong concepts to thousands and millions of programmers.
@benyaminl
Copy link

Anyway why this hasn't merged yet...

@dipikabh
Copy link
Contributor

dipikabh commented May 5, 2022

Hi @sideshowbarker, pinging you here because you seem to have worked extensively with @KennethKinLum on the related PR mdn/content#3098. Do you think you could review this one as well and merge?

@sideshowbarker
Copy link

@KennethKinLum Thanks much for catching this and fixing it.

@dipikabh Thanks much for the heads-up. I don't actually have merge perms for this repo. If you do, could you please go ahead and merge it?

@dipikabh dipikabh merged commit 8cd1036 into mdn:master May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants