2

How do I escape & in a Socrata SODA 2 API call?

For example,

http://data.cityofchicago.org/resource/xh8b-g55w.json?$where=license_description='Special Event Beer & Wine'&$limit=1

2 Answers 2

2

Escape the & as hex code %26.

http://data.cityofchicago.org/resource/xh8b-g55w.json?$where=license_description='Special Event Beer %26 Wine'&$limit=1

1

Correct, you can also URL encode the whole $where parameter if you want to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.