Serilize ember model to jsone


i am new with emberjs my quation is need to serilize ember model to json send to http sever my code

        var user ='user' ,{

firstName:“suresh” } );;

and server side code is

@POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public User createUser(User user) { try { // JSONParser parser = new JSONParser(); // User object = (User) parser.parse(user); System.out.println(“in the post method” + user); // service.createUser(user);

        return null;
    } catch (Exception ex) {
        Logger.getLogger(UserRestService.class.getName()).log(Level.SEVERE, null, ex);
    return null;


and what’s your problem with that, exactly?

I think you should better ask your questions over at htttp:// as you can target people who are also working with Jersey too.

as stated at

StackOverflow is used to track questions. Just tag your question with ember.js or search for questions with that tag. Please check to see if your question has already been answered before asking a new one.

and this discussion board is

a great venue for discussing features, architecture and best practices