On Tue, Oct 1, 2019 at 5:10 AM Volkan Yazıcı <[email protected]> wrote: > > Hello, > > I have a byte[] of a text. How can I write (incl. escaping) this to a > JsonGenerator. JsonGenerator#writeRawUTF8String(byte[] buffer, int offset, > int length) does the job, but misses escaping.
If you need escaping, you will not really benefit from feeding UTF-8 encoded input source: it will unfortunately need to go back to character, that is, decoded into Java Strings or `char[]`. -+ Tatu +- -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/CAL4a10hHDJ4H%3D%2B4Xq9WetDBb%2B_RWOU7AZu9TRfh_FDOSAXuwmw%40mail.gmail.com.
