ruby on rails - Grape Gem encoding in reponse -
in api response, there html entities. please can make return decoded entities.
{"success_message":"record found","result":[{"category":"health \u0026 safety"}]} should be
{"success_message":"record found","result":[{"category":"health & safety"}]} i using grape gem api , try
# default_format :json
format :json content_type :json, "application/json;charset=iso-8859-1" in api still working.
Comments
Post a Comment