# Post json over http network

**URL:** <https://discuss.emberjs.com/t/post-json-over-http-network/4030>\
**Category:** Ember Data\
**Created:** [January 31, 2014, 6:09am UTC](https://discuss.emberjs.com/t/post-json-over-http-network/4030 "2014-01-31T06:09:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanumantmandge](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@hanumantmandge](https://discuss.emberjs.com/u/hanumantmandge)\
**Post date:** [January 31, 2014, 6:09am UTC](https://discuss.emberjs.com/t/post-json-over-http-network/4030/1 "2014-01-31T06:09:55Z")

</div>

how to post json object over http server

submit: function(user) {

```
  this.store.create('user');

```

}

---

<div class="post-metadata">

**Author:** ![jamalsoueidan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jamalsoueidan/32/234_2.png) [@jamalsoueidan](https://discuss.emberjs.com/u/jamalsoueidan)\
**Post date:** [January 31, 2014, 3:04pm UTC](https://discuss.emberjs.com/t/post-json-over-http-network/4030/2 "2014-01-31T15:04:43Z")

</div>

Use the ajax method.

```
Ember.$.ajax({ options }).then(function (data) {
  console.log(data);
});

```

---

<div class="post-metadata">

**Author:** ![hanumantmandge](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@hanumantmandge](https://discuss.emberjs.com/u/hanumantmandge)\
**Post date:** [January 31, 2014, 6:19pm UTC](https://discuss.emberjs.com/t/post-json-over-http-network/4030/3 "2014-01-31T18:19:49Z")

</div>

thanks .but please tell me in brief diescription

---

<div class="post-metadata">

**Author:** ![jamalsoueidan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jamalsoueidan/32/234_2.png) [@jamalsoueidan](https://discuss.emberjs.com/u/jamalsoueidan)\
**Post date:** [January 31, 2014, 7:38pm UTC](https://discuss.emberjs.com/t/post-json-over-http-network/4030/4 "2014-01-31T19:38:21Z")

</div>

What is the path url?

What do you need to send? What information? {id: 123} ?

I need more information if I need to help you set it up

---

<div class="post-metadata">

**Author:** ![jasonmit](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jasonmit/32/182_2.png) [@jasonmit](https://discuss.emberjs.com/u/jasonmit)\
**Post date:** [February 1, 2014, 3:02am UTC](https://discuss.emberjs.com/t/post-json-over-http-network/4030/5 "2014-02-01T03:02:51Z")

</div>

This is not the proper medium to ask this question. Your question is better suited for stackoverflow, where you’re more likely to also get help on this.

---

<div class="post-metadata">

**Author:** ![hanumantmandge](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@hanumantmandge](https://discuss.emberjs.com/u/hanumantmandge)\
**Post date:** [February 1, 2014, 5:04am UTC](https://discuss.emberjs.com/t/post-json-over-http-network/4030/6 "2014-02-01T05:04:29Z")

</div>

i am useing emberjs with spring backend and i have jersey rest server in backend rest service i got json model in string format but i want in object . like @POST@Consumes(MediaType.APPLICATION\_JSON) @Produces(MediaType.APPLICATION\_JSON) public User createUser(User user) {

```
    System.out.println("int the post method"+user);
          
    return null;
}

```
