# Rails and JSON example?

**URL:** <https://www.ruby-forum.com/t/rails-and-json-example/189292>\
**Category:** Rails\
**Created:** [May 28, 2010, 5:20am UTC](https://www.ruby-forum.com/t/rails-and-json-example/189292 "2010-05-28T05:20:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphshnelvar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Post date:** [May 28, 2010, 5:20am UTC](https://www.ruby-forum.com/t/rails-and-json-example/189292/1 "2010-05-28T05:20:09Z")

</div>

Does anyone know of a demo or tutorial in which …

(1) In a browser some data is packaged up using JSON.  
(2) an async request is sent to a rails app sending the JSON data. I  
would like this to be done via jQuery.

(3) A rails app deserializes the JSON data.  
(4) The Rails app then packages up some other data using JSON, again  
(5) The Rails app sends this data back to the browser.

(6) jQuery code then deserializes the returned data.
