User Tools

Site Tools


json

Table of Contents

JSON

Intro

JSON or JavaScript Object Notation is a format that is used for storing data that can easily be parsed. JSON was made to be lightweight and self describing so you know what each variable is and the key and value of each are distinct and easy to figure out.

Features

Since JSON is more of a data format, it is language independent and can be parsed with any language. The notation that JSON uses starts and ends with brackets {} and has different variables that are comma separated with colons separating the key and value of each. For example, a JSON formatted object may look like this: {“name”:“John”, “age”:26, “city”:“Albuquerque”} where the variables would be name, age and city.

Weaknesses

JSON can be susceptible to JSON injection attacks or JSON hijacking, a type of Cross-site script inclusion (XSSI). JSON needs to be properly sanitized in order to prevent these types of attacks

Tutorial

json.txt · Last modified: 2021/07/26 17:39 by liebrock