JSON (JavaScript Object Notation) is a lightweight text format for structured data built from objects, arrays, strings, numbers, booleans and null. It is the default payload for most REST APIs and shows up throughout DevOps tooling as configuration files, API requests and stored documents.
The posts here cover JSON from basics to everyday use. Explainers describe what JSON is, how it works and where it is used, and comparisons set it against XML and YAML and explain how application/x-ndjson differs from application/json. Practical guides show how to POST a JSON file with curl, configure the Docker daemon through daemon.json, read Chef node object JSON, call the Zabbix API, and turn Laravel models into JSON responses with Eloquent API Resources. Related topics include AJAX requests that fetch JSON, CouchDB as a JSON document store, and code editors suited to JSON work.
A set of 50 JSON questions and answers helps with interview preparation. The material is useful for developers building or consuming APIs and for operations engineers who edit JSON configs and automate tools over HTTP.
Start here
- What is JSON and use cases of JSON? – Covers what JSON is, its features, common use cases and a getting started tutorial.
- Comparison between XML Vs JSON Vs YAML – Compares syntax, readability and typical uses of XML, JSON and YAML side by side.
- What is difference between application/x-ndjson and application/json? – Clarifies when to use newline-delimited JSON versus standard JSON content types.
- How do you POST a JSON file with curl?? – Shows how to send a JSON file as a POST body with correct headers using curl.
- Docker Tutorials: Configure Docker daemon with a configuration file? – Applies JSON in practice by configuring the Docker daemon through daemon.json.
- How to Create Laravel Eloquent API Resources to convert model collections into JSON(Part 5). – Transforms Laravel models and collections into clean JSON API responses.
- Top 50 question and answers for JSON – Fifty questions and answers to review JSON fundamentals before an interview.
Latest JSON articles
Docker commands Guide – docker inspect with examples
Here’s a complete tutorial on docker inspect, covering what it does, examples, and use cases. What is docker inspect? docker inspect is a Docker command that retrieves…
What is JSON and use cases of JSON?
What is JSON? JSON is a widely used data-interchange format that offers simplicity, flexibility, and compatibility across different systems and programming languages. Understanding JSON is essential for…
Zabbix Tutorials: Working with Zabbix API
Here is a short tutorial on how to use the Zabbix API: Here are some examples of how to use the Zabbix API: Rajesh KumarI’m Rajesh Kumar,…
How do you POST a JSON file with curl??
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
Docker Tutorials: Example of daemon.json or docker.conf
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
Docker Tutorials: Configure Docker daemon with a configuration file?
What is docker Daemon? The Docker daemon is a service that runs on your host operating system.It currently only runs on Linux because it depends on a…
Docker Tutorials: Configure Docker client with a configuration file?
What is Docker client? The Docker client ( docker ) is the primary way that many Docker users interact with Docker. When you use commands such as…
What is CouchDB?
CouchDB is a document-oriented database and within each document fields are stored as key-value maps. Fields can be either a simple key/value pair, list, or map. It…
Best & Most Popular 5 Code Editor for Json programming Language
In this tutorial I’m going to share top 5 best code editor for Json Programming language for developers. Top 5 Best Code Editor for Json Programming…
What is JSON and How it works?
Introduction In a world inundated with data, it is becoming more important to know how to work with a variety of data. As programmers, we need to…
Top 50 question and answers for JSON
The JSON (JavaScript Object Notation) is an insubstantial data-interchange format. It is easy to read and write. It is easy for machines to analyze and make. It…
Comparison between XML Vs JSON Vs YAML
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
What is JSON? Why we use JSON over XML?
Let’s discuss about JSON that why we use JSON and what is the importance of JSON in Web Development. How can It help us to get data…
CRUD USING API IN Flutter (Part 1)
INTRODUCTION: In general, the use of JSON is used to communicate data from client to server and from server to client. In this article we are going…
How to Create Laravel Eloquent API Resources to convert model collections into JSON(Part 5).
Deepak KumarMotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage…
How to Create Laravel Eloquent API Resources to convert model collections into JSON(Part 4).
Deepak KumarMotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage…
How to Create Laravel Eloquent API Resources to convert model collections into JSON(Part 3).
Deepak KumarMotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage…
How to Create Laravel Eloquent API Resources to convert model collections into JSON(Part 2).
Deepak KumarMotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage…
How to Create Laravel Eloquent API Resources to convert model collections into JSON(Part 1)
Deepak KumarMotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage…
Filtering and sorting search results in an HTML page
Step:1 – Create first html page. with any name example(search.html) Step:2 – Create a second Html page.with any name example(page-one.html) Step:3 Then create a json page like…
AJAX Crash Course
What is AJAX ? Asynchronous Javascript & XML Set of web technologies Send & receive data asynchronously Does not interfere with current web page JSON has replaced…
How to create sample data to perform searches using elastic search?
Step 1 – Go to: http://www.json-generator.com/ Step 2 – Download and save as customers_full.json Step 3 – Open customers_full.json in sublimetext Remove the array brackets Find-Replace },{…
What is difference between application/x-ndjson and application/json?
Lets understand what is json? JSON stands for JavaScript Object Notation JSON is a lightweight format for storing and transporting data JSON is often used when data…
Elastic Search Error – The bulk request must be terminated by a newline
FIX – Add a New line in customers_full.json Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world…
Understanding Chef Node Objects json content!
Chef Node Objects Defined! For the chef-client, two important aspects of nodes are groups of attributes and run-lists. An attribute is a specific piece of data about…
Script to check the build status of a Jenkins job
Using JSON & Curl [code]BUILD_STATUS=$(curl –user USER:TOKEN_VALUE –silent $BUILD_URLapi/json | jq -r ‘.result’)echo $BUILD_STATUS[/code] Using jenkins PluginsPlugins Name – Conditional Build Step For Implementations, Please check here.https://stackoverflow.com/questions/11125598/getting-the-build-status-in-post-build-script…
JSON: frequently asked questions
What is the difference between JSON and NDJSON?
A JSON document is a single value, such as one object or array. NDJSON places one complete JSON value on each line, which makes it easy to stream and process records one at a time, as with log shipping or bulk APIs.
How do I POST a JSON file with curl?
Use curl -X POST -H "Content-Type: application/json" -d @data.json https://example.com/api. The @ tells curl to read the request body from the file.
Does JSON support comments?
No, the JSON standard does not allow comments, and strict parsers will reject them. Some tools accept variants such as JSONC, but plain JSON files should contain only data.
Should I use JSON or YAML for configuration?
YAML is easier for people to read and supports comments, so it is common for hand-edited config. JSON is stricter and simpler to parse, so it suits APIs and machine-generated files. Many tools, Docker's daemon.json among them, expect JSON specifically.
