java - FasterXML Jackson Smile vs json -


i going through online resources , found jackson can used serialization , deserialization java objects , json string respectively. @ same time found called smile. below doubts:

  1. is jackson json library serializes text based byte stream json representation
  2. is smile serializes non text i.e. binary byte stream same binary representation
  3. if above assumptions correct byte available jackson json library can deserialized other libraries understand json (like python, ruby json serialization/deserialization library). same not possible smile may have specific binary representation of java object. correct?

if incorrect please guide me answer. thanks.

as new computer science field, apology if question fits stack overflow standard.

the major difference between normal json markup , smile smile binary markup version of json. since smile more compact, has less overhead when deserializing , better option large , complex payloads.

when use each markup:

  • json/xml - when want ensure compatibility of api, while decoupling various serialization protocols. there variations of each, embedded metadata, provide more context data.
  • bson/smile/kryo - when needs speed. can real-time application, data collection, internal server communication.

the 2 formats compatible: can send smile , decode json, wrapping proper decoder.

some benchmark values each


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

wso2esb - How to concatenate JSON array values in WSO2 ESB? -