search for: my_json

Displaying 1 result from an estimated 1 matches for "my_json".

2009 Jul 05
2
JSON data not decoded in Rails
...rs = $H({name: ''Violet'', occupation: ''character'', age: 25 }).toJSON(); new Ajax.Request(send_data_url, { method: ''post'', parameters: json_parameters, contentType: ''application/json;'' }); } Rails: def change() debugger my_json = ActiveSupport::JSON.decode(params["_json"]) render :text => my_json end I''ve checked with the debugger that the json data that is sent to the server is the following: {"_json"=>"%7B%22name%22%3A%20%22Violet%22%2C%20%22occupation%22%3A%20%22charact er%22%2C...