# Best way to send JSON request/get a response from controller?

**URL:** <https://www.ruby-forum.com/t/best-way-to-send-json-request-get-a-response-from-controller/148056>\
**Category:** Rails\
**Created:** [September 8, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/best-way-to-send-json-request-get-a-response-from-controller/148056 "2008-09-08T19:38:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![typej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@typej](https://www.ruby-forum.com/u/typej)\
**Post date:** [September 8, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/best-way-to-send-json-request-get-a-response-from-controller/148056/1 "2008-09-08T19:38:36Z")

</div>

Hello Friends,

What is the best way to send json from your controller, and await for a  
response? Ajax? Ruby’s net/http?

The JSON server that I am sending the request to only accept POST  
methods,  
and sends a POST back. If I use Ajax, is it possible to get the POST  
response? Is there a scriptaculous or YUI function that handles this  
well?

Thank you for your help -

Jin
