Skip to content

Setting media type (json for eg) manually not working for certain cases. #482

@chirans

Description

@chirans

As a continuation of discussion we had in Google group, please find the following observations:-

The below response handling doesn't work when I use it with use(new Jackson());

response.status(Status.OK).type(MediaType.json).send("{\"status\":\"failed\", \"msg\" : \"" + msg + "\"}");

But it works if I comment use(new Jackson()); out, not sure if this is expected.

Unfortunately, setting MediaType json manually doesn't work in deferred API and hence I'd need to resort to use(new Jackson()); to send JSON response from a deferred API by returning map (Jackson would convert to JSON)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions