Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teotimepacreau/json-exercices-day35-of-100daysofcode
JSON exercices from #30DaysOfJavascript
https://github.com/teotimepacreau/json-exercices-day35-of-100daysofcode
100daysofcode 30daysofjavascript json parse stringify
Last synced: about 6 hours ago
JSON representation
JSON exercices from #30DaysOfJavascript
- Host: GitHub
- URL: https://github.com/teotimepacreau/json-exercices-day35-of-100daysofcode
- Owner: teotimepacreau
- Created: 2023-08-06T12:33:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-06T12:54:33.000Z (over 1 year ago)
- Last Synced: 2023-08-06T13:53:27.031Z (over 1 year ago)
- Topics: 100daysofcode, 30daysofjavascript, json, parse, stringify
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON Exercices from #30DaysOfJavascript
https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/16_Day_JSON/16_day_json.md# Learned
- basic JSON structure : double quotes
- change JSON to object with `JSON.parse()`
- parse parameters `JSON.parse(usersText, (key, value) => {
let newValue =
typeof value == 'string' && key != 'email' ? value.toUpperCase() : value
return newValue
})`
- change something JS in JSON with `JSON.stringify(obj, replacer, space)`//The replacer is used as filter and the space is an indentations. If we do not want to filter out any of the keys from the object we can just pass undefined.# 🛠️
Vanilla Javascript