Prevent Rails from encoding the ampersands in a URL when outputting JSON
Add to your application.rb file:
config.active_support.escape_html_entities_in_json = false
your answer described there:
Converting URL to JSON version?
JSON encoding wrongly escaped (Rails 3, Ruby 1.9.2)
Why does is Rails 4 unicode escaping in to_json
Encoding JSON in href using encodeURI, Rails parsing (article)
and also this would help you: