Jansson 2.2 is out. This release adds a new encoding function and fixes some minor bugs and documentation glitches. The new encoding function,...
1679
pozzugno
Sep 6, 2011 4:30 pm
Dear group, I'm a firmware developer on small embedded platform. Until now, I used to read/write the in-memory configuration C structures (with padding bytes)...
1680
jonathan wallace
ninja9578
Sep 6, 2011 5:12 pm
I don't see why not. Â JSON is lightweight, I use it for configuration all the time. Â I maintain a project called libjson that might work well for you....
1681
Douglas Crockford
douglascrock...
Sep 6, 2011 5:28 pm
Silicon Valley Codecamp is a free software development conference held at Foothill College in Los Altos, California. I will be presenting there again this...
1682
Douglas Crockford
douglascrock...
Sep 6, 2011 5:36 pm
... Update: This year only, it will be held in 2011....
1683
pozzugno
Sep 6, 2011 6:43 pm
... It sounds interesting, I'll look at it in short time. Thank you for your suggestion....
1684
Douglas Crockford
douglascrock...
Sep 9, 2011 1:36 pm
The JSON page is now available in Danish, thanks to Michael Kramer. http://json.org/json-da.html...
1685
rkalla123
Sep 21, 2011 1:15 pm
Hey Guys, I am currently working on what I hope to be a 1:1 binary JSON specification (no custom data types supported like BSON or BJSON, just binary...
1686
Stephan Beal
stephan.beal
Sep 21, 2011 1:23 pm
... Keep in mind that JSON does not specify any required numeric precision, and some platforms cannot use int64. (JavaScript specifies 53 bits of precision, in...
1687
rkalla123
Sep 21, 2011 1:26 pm
Addendum: "Number" is broken into 4 types... it is early here: byte, int32, int64, double...
1688
rkalla123
Sep 21, 2011 1:58 pm
Stephan, Great feedback, these are exactly the kind of nuances I wanted to uncover and discuss. When I dug through the language specs looking for the most...
1689
Stephan Beal
stephan.beal
Sep 21, 2011 2:12 pm
... i've been using doubles for that purpose in that particular JS engine (v8). I found no way to deserialize JavaScript objects directly from a ... The "new"...
1690
rkalla123
Sep 21, 2011 3:29 pm
... Do you happen to have a link? This is something I'd like to know more about/play with a bit. Best, Riyad...
1691
Stephan Beal
stephan.beal
Sep 21, 2011 3:32 pm
... Here's a couple... http://www.lbi.co.uk/blog/latest/typed-arrays-in-javascript/ http://www.khronos.org/registry/typedarray/specs/latest/ -- ... ...
1692
John Cowan
johnwcowan
Sep 21, 2011 3:40 pm
... It's notable that neither of these provides an int64 type, only signed and unsigned 8-bit, 16-bit, and 32-bit integers plus short and long floats. -- Dream...
1693
Tatu Saloranta
cowtowncoder
Sep 21, 2011 4:45 pm
... You might be interested in an existing such specification called Smile: http://wiki.fasterxml.com/SmileFormatSpec which was specified about a year ago, has...
1694
Tatu Saloranta
cowtowncoder
Sep 21, 2011 4:48 pm
Btw, forgot to add: On Wed, Sep 21, 2011 at 6:15 AM, rkalla123 <rkalla@...> wrote: ... It would be great if you could contribute this to jvm-serialziers,...
1695
Martin Cooper
mfncooper
Sep 21, 2011 5:12 pm
... A couple of things from a quick skim of the document: * "As with JSON, all Strings are encoding in UTF-8" The *default* JSON encoding is UTF-8, but JSON...
1696
John Cowan
johnwcowan
Sep 21, 2011 5:22 pm
... Fortunately, these points don't affect the actual protocol, just the explanation. -- LEAR: Dost thou call me fool, boy? John Cowan FOOL: All thy other...
1697
Stephan Beal
stephan.beal
Sep 21, 2011 5:44 pm
... Thank you for that. Smile's requirement that impls be capable of supporting "shared strings" seems a bit draconian to me, though. That adds non-trivial ...
1698
Don Owens
regexman
Sep 21, 2011 6:27 pm
What happens if you need to encode an integer larger than 64-bits? Shouldn't there be a way to encode a large integer as a buffer with a byte length? I don't...
1699
Stephan Beal
stephan.beal
Sep 21, 2011 6:42 pm
... It specifies neither a limit nor a minimum, at least as far as i was able to dig out of the RFC a few months ago. A 2-bit limit is, strictly speaking, ...
1700
rkalla123
Sep 21, 2011 6:58 pm
Don, Interesting point. Stephan and I had a discussion this morning about the portability of the numeric types across most (all) platforms breaking down when...
1701
rkalla123
Sep 21, 2011 7:01 pm
Tatu, I'd love to get this into jvm-serializers; I have been utilizing the same test data (MediaContent) and models for testing to try and get relatable...
1702
rkalla123
Sep 21, 2011 7:07 pm
Martin, Great catches, both issues fixed in the specification and my mind expanded accordingly ;)...
1703
rkalla123
Sep 21, 2011 7:42 pm
In another thread I submitted a proposal for a binary format specification for JSON that you might find handy in an embedded system: ...
1704
Stephan Beal
stephan.beal
Sep 21, 2011 8:27 pm
... It sounds like binary is your best bet, but if you're willing to hack/experiment a little... i have a portable C89/C99 json library ( ...
1705
Mark Joseph
markjoseph_sc
Sep 21, 2011 10:10 pm
I don't see the point of using something new for binary data. Clearly this is not JSON. If you have an application that needs an encoding that handles...
1706
Don Owens
regexman
Sep 21, 2011 11:57 pm
I've seen very large numbers used in JSON. In Perl, that can be represented as a Math::BigInt object. And that is the way I have implemented it in my JSON...
1707
rkalla123
Sep 22, 2011 2:50 am
Don, I see your point. The way I understand it is that this would require 2 new data types, effectively BigInt and BigDecimal. So say something along these...