[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Doing unto JSON what...

  • From: James Clark <jjc@jclark.com>
  • To: "Simon St.Laurent" <simonstl@simonstl.com>
  • Date: Thu, 3 Jan 2013 10:35:44 +0700

Re:  Doing unto JSON what...
I was a bit surprised to find it has neither a string nor a character type.  Strings are handled as raw byte sequences (and so presumably it's up to the application to deal with encoding issues).  That's is not a design I find very appealing.

http://wiki.msgpack.org/display/MSGPACK/Format+specification

James


On Mon, Dec 31, 2012 at 6:28 AM, Simon St.Laurent <simonstl@simonstl.com> wrote:
Years ago I hoped that programmers would move away from XML and toward formats that were a better fit for the kinds of messages they wanted to send between specific kinds of senders.  I pointed to ASN.1 as a binary option (though never one I could make work), and was happy to see JSON emerge as a simpler text-based format for many kinds of messages.

Today, this one seems to keep coming across my Twitter feed, even from people reporting that they're using it.

------------------------------------------------
MessagePack: It's like JSON. but fast and small.

MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON but it's faster and smaller. For example, small integers (like flags or error code) are encoded into a single byte, and typical short strings only require an extra byte in addition to the strings themselves.

If you ever wished to use JSON for convenience (storing an image with metadata) but could not for technical reasons (encoding, size, speed...), MessagePack is a perfect replacement.

http://msgpack.org/
------------------------------------------------

There's support in lots of languages, though I haven't had time to play.  I suspect a few folks here might still be interested.

Thanks,
--
Simon St.Laurent
http://simonstl.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l....org
subscribe: xml-dev-subscribe@l....org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.