Details
Description
We have our own JSON serializer, but there is no way to publish an already formatted message. Can we have maybe a Channel.publishRaw() or Channel.publishJson() to do this?
We have our own JSON serializer, but there is no way to publish an already formatted message. Can we have maybe a Channel.publishRaw() or Channel.publishJson() to do this?
I think this jira's title should be changed to "write some bloody javadoc" !-)
Look at the innerclass JSON.Literal
If our JSON generator finds and instance of JSON.Literal at any point in
the Object graph, then it will use the literal JSON included in the instance
instead of generating new JSON content.
I will improve the javadoc for this, although there is a tiny bit about it
in the JSON class already.