Json Tools

FREE
By thefosk
Updated 5 months ago
Other
4.7/10
Popularity Score
331ms
Latency
100%
Success Rate

Json Tools API Documentation

This API provides a set of useful features for JSON data. Send me a private message to ask for more features. Enjoy :)

View API Details
GETprettyPrint
GETvalidateJSON
GETprettyPrint

Pretty prints a JSON data with indentation

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
jsonSTRING
REQUIREDThe unformatted JSON data.
Code Snippet
unirest.get("https://thefosk-json-tools.p.rapidapi.com/prettify?json=%7B%22key%22%3A%22value%22%7D")
.header("X-RapidAPI-Host", "thefosk-json-tools.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://thefosk-json-tools.p.rapidapi.com/prettify
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://thefosk-json-tools.p.rapidapi.com/prettify?json=%7B%22key%22%3A%22value%22%7D")
.header("X-RapidAPI-Host", "thefosk-json-tools.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication