JSON Utils

About JSON Utils?

JSON Utils is for users who works with configurations or API payloads. Often when the data is received from middleware/backend API calls. It is hard for developers to perceive information due to line breaks (this can be due to reducing network cost of send huge payloads). Such payloads may bring tears in engineer’s eyes. We believe engineers are artists they need healthy environment to focus more on complex problems to solve challenging issues. Moreover, API contracts exchanges over emails or attachments reduces correctness of the source payload. JSON Utils contribute helping hands to solve such problems by parsing and formatting your messy JSON payloads.

What Is JSON?

JSON stands for JavaScript Object Notation, it is a lightweight, language-independent, open data-interchange format like XML (eXtensible Markup Language) or YAML (Yet Another Markup Language). It is widely used across the internet for APIs and configurations. It becomes popular because of its payload size, easy to read/write compared to XML. Moreover, it integrates nicely with JavaScript (the widely used programing language for both frontend and backend). Nevertheless, almost every major language has some form of library(ies) or natively build-in functionality which can parse and convert JSON payloads into objects or classes in that language. This makes working with JSON data extremely easy inside the programing language. Which is why when it comes to creating an API or consuming an API, JSON is almost always the first choice of the engineers.

Want to know more about JSON? Checkout some of the links given below:

1. Introducing JSON

2. ECMA-404 The JSON Data Interchange Standard

3. JSON Tutorial - W3Schools

4. Wikipedia - JSONP

Why JSON Utils?

Creating scalable APIs is not an easy task. It requires ample amount of time and focus to understand the business requirements. Once the engineers are ready to code, they often encounter technical challenges, either related to 3rd party API responses, legacy APIs, or configurations etc. Dealing all such challenges results fragile products. JSON Utils help engineers to stay focus and not to worry about at least issues related to JSON.

1. Validation

This feature help engineers to find and fix JSON validation errors. If you are trying to validate JSON and getting error like, “Unexpected token [token] in JSON at position…” It means you are possibly trying to parse something that isn’t JSON, or it is JSON having errors. JSON Utils detects position of error token which help engineers to correct errors without spending precious time on finding missing quotes/colon somewhere in the payload.

2. Formatting / Beautify

Many sites or middleware offers response payloads in JSON format. Usually, such payloads are hard to read due to the absence of white spaces and new lines characters (generally, this is due to reducing network cost by sending compressed version of JSON string). This feature help engineers to format those JSON payloads and get sense out of it.

3. Compression / Minify

Efficient network utilization is always important, specifically when dealing with huge JSON payloads. This is helpful for clients who are consuming JSON payloads from remote locations i.e., where internet speed is not decent enough to handle heavy payloads. In contrast with Formatting/Beautify, JSON compression tool help engineers to avoid putting additional overhead on network resources through compact JSON payloads.

4. XML Conversion

Working with SOAP based APIs or XML based configurations are still common. When integrating external systems/APIs, engineers often get requirements where they get JSON payload. However, there existing codebase supports only XML format. To make engineers life easier, this feature provides quick conversion of JSON payloads into XML format.

5. YML / YAML Conversion

YML/YAML (Yet Another Markup Language) is widely used format for writing configurations for most DevOps tools and applications (e.g., Kubernetes, Ansible, Prometheus etc.). In the process of migrating old legacy stuff over modern DevOps tools and technology. It is often required to support both old and new infrastructures in parallel. To help engineers this feature provides quick conversion of JSON payloads into YML/YAML format.

© Copyright 2021 CodeofEverything - All Rights Reserved