jiffy icon indicating copy to clipboard operation
jiffy copied to clipboard

Nested raw json for encoder

Open IgorKarymov opened this issue 9 years ago • 1 comments

Hi there! it's very useful to be able to inform the encoder that some part of the input is already JSON. So it should be used "as is" without any additional escaping etc. Something like:

Payload = jiffy:encode(#{foo => bar}),
%%...
%%... a few hours later in another process on another node :)...
%%...
Packet = jiffy:encode(#{id => 1, payload => {json, Payload}}).

IgorKarymov avatar Aug 29 '16 06:08 IgorKarymov

+1

I am looking to do the exact same thing.

mpenet avatar Nov 29 '16 09:11 mpenet