THIS IS NOT JSON!!!

Publicado el: 13 febrero 2023
en el canal de: Red Black Tech
1,099
25

Python Dictionaries, Javascript Objects, Java HashMaps, are NOT JSON. "(JSON) is a lightweight, text-based, language-independent data interchange format" - this comes straight from the JSON RFC made during the early stages of the web.

There's a few implications of JSON being text. One, and the most obvious, is that by terminology you can only call Strings JSON (you get arrested for doing otherwise ;D).

Another more important implication is that there is no single data structure inherent to a JSON object. Up until now you've likely associated Python Dictionaries and Javascript Objects with JSON, however this is incorrect - JSON is more abstract and lets you use any data structure covered by the Mapping Abstract Data Type (Not to mention String, List, Number, and Null).

Does this change anything you've been doing so far? Probably not, but it's always good to know the ins and outs of your code so that you can more comfortably make changes to it.

#javascript
#python


En esta página del sitio puede ver el video en línea THIS IS NOT JSON!!! de Duración hora minuto segunda en buena calidad , que subió el usuario Red Black Tech 13 febrero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,099 veces y le gustó 25 a los espectadores. Disfruta viendo!