7 تغريدة 8 قراءة Jan 19, 2023
JSON. What is it?
Thread 🧵👇
📌 What is JSON?
JavaScript Object Notation (JSON) is a language-independent data-interchange format that uses human-readable text for storing and transmitting data objects.
JSON allows you to share key-value pairs, arrays, and objects between the client and the server.
JSON is language-independent. If your server runs on Python and your front end is in JavaScript, they can easily communicate via APIs that exchange data in JSON.
📌 JSON Syntax
In JSON, data is separated by a comma. Also, the data is represented by key/value pairs.
📌 Example
You can write JSON in two ways.
1️⃣ Start with an array
2️⃣ Start with an object
📌 JSON methods
You can convert an object/array to a string and vice versa via JSON.stringify() and JSON.parse() methods.
That’s all for now!
Follow @Rapid_API for more exclusive content. 🐙

جاري تحميل الاقتراحات...