Skip to content

JSON API: How to post a payload with special characters? #1023

Answered by pglombardo
pglombardo asked this question in Q&A
Discussion options

You must be logged in to vote

To post special characters such as !@#$%^&*() (or others), they have to be URL encoded to their equivalent strings. This is a requirement of HTTP of which the JSON API uses as a transport.

So the string '&@#*$(@ URL encoded becomes %26%40%23%2A%24%28%40.

Here is an example using curl to make a JSON POST with the URL encoded string.

This question came in over email and thought it might be of help to others.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pglombardo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Resolved The issue, question or bug has been resolved.
1 participant