Closed Ahmadre closed 3 years ago
solved it with jq '.value | tostring'
Hey @Ahmadre, thanks for using the Chuck Norris api and for reporting this issue. Please note that all api endpoints can return plain text as well, just add accept: text/plain
to your request and you'll get a plain text representation for the given resource. E.g.
curl --request GET \
--url 'https://api.chucknorris.io/jokes/random' \
--header 'accept: text/plain'
Hope this helps 🙏
Bests, Matías
Thanks for your reply it worked after I found that :)
Our Team and Devs loves this in our CI-Reports!
You guys rock!
I use this api in our CI/CD Pipeline and we got JSON errors that it's invalid, because of some jokes where strings are not escaped.
Example:
The error lies here:
'\''Donnell? Chuck said "I'\''d