Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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