REST API To Flatten JSON

  • Home
  • /
  • REST API To Flatten JSON
REST API To Flatten JSON

REST API To Flatten JSON

General 25 Aug 2019

Flatten JSON is an simple REST API which takes a JSON object as input and parses into a key/value string. Here the key will have the full path for the field separated by .(dot). API is built on AWS with Lambda Function(Python), API Gateway, Custom Domain Mapping.  Implementation flow details can be found here.

Detailed blog with more details on this implementation to follow.

Please find the API details below.

URL https://api.entechlog.com/flatten-json/prod/
Method POST
Content-Type application/json

You can invoke this service using Postman, Please see below image for an example.

Input
post thumb
Output
post thumb
Notes
  • Currently returns “application/json”, will be enhanced to return “text/plain” also.
  • Disclaimer : This API logs all incoming requests, So please don’t send any confidential information.
  • Service runs on free tier of AWS, So please avoid duplicate calls to keep the service alive.
Share: