Skip to content
Browse all functions

Parse String to JSON

data/parsestring2json

parsestring2json (Parse String to JSON) is a 1001fx API function in the group Data & JSON: POST https://api.1001fx.com/data/parsestring2json, 1 credit per call. It works as a ready-made module in n8n or as a plain HTTP call.

Parses a string into a JSON object.

Try it in the 1001fx app

Run parsestring2json in your browser with your API key – fill the form, click Run and get the answer or the file.

parsestring2json in the 1001fx app: the form with example values
Parse String to JSON in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/data/parsestring2json
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • stringstringrequired

    String to be parsed

    Example:
    {"module":"address","function":"city"}

Examples

Parse string

Parses a string to an object

Input

Expects a json body
{
  "string": "{\"module\":\"address\",\"function\":\"city\"}"
}

Output · HTTP 200

Response
{
  "result": {
    "module": "address",
    "function": "city"
  }
}
Show curl command
curl -X POST 'https://api.1001fx.com/data/parsestring2json' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"string":"{\"module\":\"address\",\"function\":\"city\"}"}'

Try parsestring2json now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.023.02.2023created
Ask 1001fx