REST API To Flatten JSON

Sunday, August 25, 2019

REST API To Flatten JSON

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

Output

Notes
  • Currently returns "application/json", will be enhanced to return "text/plain" also.
  • Disclaimer : The 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.

No comments

Post a Comment

Error 404

The page you were looking for, could not be found. You may have typed the address incorrectly or you may have used an outdated link.

Go to Homepage