Skip to main content

The Deserialize: Form URL encoded mapper converts a Form URL encoded string into a JSON object.

Fields

Compatibility

Determines which mode is used to deserialize the provided string.
  • PHP compatibility
    • The input “product.name=example” will result in the JSON object {“product_name”: “example”}
    • The input “name[0]=example&name[1]=example2” will result in the JSON object {“name”:[“example1”, “example2”]}
  • JavaScript compatibility
    • The input “product.name=example” will result in tje JSON object {“product.name”:”example”}
    • The input “name[0]=example&name[1]=example2” will result in the JSON object {“name\[0\]”:”example1”, “name\[1\]”: “example2}

Sample data

InputOutput
PHP compatibility

product.name=example
{

”product_name”: “example”

}
PHP compatibility

name[0]=example&name[1]=example2
{

”name”: [“example”, “example2”

}
JavaScript compatibility

product.name=example
{

”product.name”: “example”

}
JavaScript compatibility[“example”, “example2”]