Can smile factory also deserialize plain JSON input?

62 views
Skip to first unread message

maorl...@gmail.com

unread,
Apr 24, 2019, 7:15:33 PM4/24/19
to smile-format-discussion
Hi,

Can SmileFactory deserialize plain JSON input?

Thanks

Tatu Saloranta

unread,
Apr 24, 2019, 7:17:22 PM4/24/19
to smile-forma...@googlegroups.com
On Wed, Apr 24, 2019 at 4:15 PM <maorl...@gmail.com> wrote:
Hi,

Can SmileFactory deserialize plain JSON input?


No, you need to use JsonFactory for that.

Jackson 2.x does actually allow format auto-detection, so it is possible to wire things together to have a single `ObjectMapper` to read either JSON or Smile.

-+ Tatu +-
 

maorl...@gmail.com

unread,
Apr 25, 2019, 3:12:31 AM4/25/19
to smile-format-discussion
Thanks!

בתאריך יום חמישי, 25 באפריל 2019 בשעה 02:17:22 UTC+3, מאת tsaloranta:
Reply all
Reply to author
Forward
0 new messages