Post json over http network

how to post json object over http server

submit: function(user) {

  this.store.create('user');

}

Use the ajax method.

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

thanks .but please tell me in brief diescription

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

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.

1 Like

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;
}