# How to parse a json in REST

**URL:** <https://www.ruby-forum.com/t/how-to-parse-a-json-in-rest/143716>\
**Category:** Rails\
**Created:** [July 22, 2008, 4:02am UTC](https://www.ruby-forum.com/t/how-to-parse-a-json-in-rest/143716 "2008-07-22T04:02:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bishal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@bishal](https://www.ruby-forum.com/u/bishal)\
**Post date:** [July 22, 2008, 4:02am UTC](https://www.ruby-forum.com/t/how-to-parse-a-json-in-rest/143716/1 "2008-07-22T04:02:25Z")

</div>

Hi all !

Can anyone suggest me a simple way of parsing a json returned by a  
RESTFUL server. I am in a need to make restful calls to my REST server,  
which returns json and should be able to make method calls to the server  
making use of ajax in the client side.

---

<div class="post-metadata">

**Author:** ![bishal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@bishal](https://www.ruby-forum.com/u/bishal)\
**Post date:** [July 22, 2008, 10:10am UTC](https://www.ruby-forum.com/t/how-to-parse-a-json-in-rest/143716/2 "2008-07-22T10:10:29Z")

</div>

On Jul 22, 3:02 am, Bishal A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi all !
> 
> Can anyone suggest me a simple way of parsing a json returned by a  
> RESTFUL server. I am in a need to make restful calls to my REST server,  
> which returns json and should be able to make method calls to the server  
> making use of ajax in the client side.

ActiveSupport::JSON.decode

Fred
