Node.js: JSON Parameter POST
How do I write a JSON开发者_StackOverflow社区 object with a parameter?
Thanks
If this isn't answering your question, you might want to clarify the question.
If you need to POST a JSON object to a server, you're best off using a library like jQuery. Put your object in data and use the following. (See also http://api.jquery.com/jQuery.post/)
$.ajax({
type: 'POST',
url: url,
data: data,
success: success
dataType: dataType
});
精彩评论