Jackson Glossary: SmileFactory

Role

This is a specialized JsonFactory implementation used to produce JsonParser and JsonGenerator instances that read/write binary Smile data format (which is binary equivalent of JSON).

It was added in Jackson 1.6.

Usage

SmileFactory can be instantiated and used directly just like regular JsonFactory, but most commonly it is used via regular ObjectMapper configured with an instance, like so:

    ObjectMapper mapper = new ObjectMapper(new SmileFactory());


Back to Jackson Term Glossary


CategoryJackson

SmileFactory (last edited 2011-02-19 21:14:31 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC