Post json over http network


#1

how to post json object over http server

submit: function(user) {

  this.store.create('user');

}


#2

Use the ajax method.

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

#3

thanks .but please tell me in brief diescription


#4

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


#5

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.


#6

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