0 Replies Latest reply on Dec 10, 2014 11:38 PM by firepod

    RESTEasy JSON Generation

    firepod Newbie

      We have the following RESTful web service response method:


      public Response findUser(@PathParam("uid") String userId) {
          User user = ...
          return Response.ok(user).build();


      Does RESTEasy generate the actual JSON sting from the supplied domain object when build() is called, or does it happen after the method returns?


      We're trying to identify what portion of our response time is spent on JSON generation.


      Reference: Using Wildfly8.1 on Java8.