Catalog/data-transform-querystring-json

Data Transform

Query string <-> JSON API

Converts a URL query string to a JSON object (repeated and []-suffixed keys become arrays, percent-decoded) or an object back to a query string. Answers 'How do I parse a query string into JSON?', 'How do I build a query string from an object?'.

Price$0.01per request
MethodPOST
Route/v1/data-transform/querystring-json
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformquerystringurljsonconvertparamswrangle
API URLhttps://x402.hexl.dev/v1/data-transform/querystring-json
Integration docs
Example request
{
  "data": "a=1&b=2&tag=x&tag=y",
  "direction": "qs-to-json"
}
Example response
{
  "direction": "qs-to-json",
  "result": {
    "a": "1",
    "b": "2",
    "tag": [
      "x",
      "y"
    ]
  }
}
Input schema
{
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "string",
      "examples": [
        "a=1&b=2&tag=x&tag=y"
      ]
    },
    "direction": {
      "type": "string",
      "examples": [
        "qs-to-json"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}