docs icon indicating copy to clipboard operation
docs copied to clipboard

[EDIT] General: JSON

Open not-a-ethan opened this issue 2 years ago • 1 comments

Type of Edit (select all that apply)

Add new content (definitions, codeblocks, etc.)

Description (optional)

Add how you can read JSON with JavaScript. Also including how to import the JSON

Code of Conduct

  • [X] I agree to follow Codecademy Doc's Code of Conduct

For Maintainers

  • [x] Labels added
  • [ ] Issue is assigned

not-a-ethan avatar Jun 27 '22 12:06 not-a-ethan

@ethan-master-coding I wouldn't go too heavy with code snippets in the General entries. Instead, I'd suggest linking out to entries that have to do with reading/importing JSON. For the PR that get's made to close this issue, here is what I would also recommend.

Under JavaScript: JSON:

  • Add info about how JSON is a reserved, standard object that is built into JavaScript (which is why we have access to methods like .parse() and .stringify().

Under Python: JSON Module:

  • Mention something about how JSON in Python is based on the object-literal syntax of JavaScript.
  • List out the data structures (tuple, lists, etc.) and data types (link out to data types) that can be converted to JSON strings in Python.

Under General: JSON:

  • Link out to JavaScript: JSON and Python: JSON Module.
  • Add missing right-parenthesis () next to "EcmaScript").
  • Mention something about how JSON is language-agnostic but borrows from C-descendent languages such as C, C++, JavaScript, Java, and Python.

Dusch4593 avatar Jul 18 '22 14:07 Dusch4593

Hey! I'm interested in working on this issue - would you mind assigning it to me? 🥳 Thanks!

YanisaHS avatar Aug 19 '22 18:08 YanisaHS

Hi @yhscherber! You're assigned 😄

Dusch4593 avatar Aug 19 '22 21:08 Dusch4593