URI in JSon

46 views
Skip to first unread message

Ulli Gerhard

unread,
Feb 25, 2016, 4:47:50 AM2/25/16
to RestExpress
Hello again, I have another question for you:

I have to provide a URI in the JSon-result my server gives via rest.

However the URI includes several header-fields and the ampersand(&) character always becomes &amp,
is there a way to ensure the URI is preserved "as-is" ?

Probably something with the JSon-serialization-provider...

Kind regards
Ulli Gerhard

Ulli Gerhard

unread,
Feb 25, 2016, 5:42:48 AM2/25/16
to RestExpress
Ok, thanks, solved it :)

Just put false when creating your JSon-(default)-processor

public SerializationProvider()
{
super();
add(new JacksonJsonProcessor(false), new RawResponseWrapper(), true);
// add(new XstreamXmlProcessor(), new RawResponseWrapper());
}

Reply all
Reply to author
Forward
0 new messages