by alexatkeplar on 4/25/17, 11:39 AM with 52 comments
by portlander12345 on 4/25/17, 5:27 PM
Good intro: http://cognitect.github.io/transit-tour/
GitHub: https://github.com/cognitect/transit-js
Note that in the introduction they provide a simple benchmark where Transit is both more compact and faster to parse than JSON with custom hydration.
by keithwhor on 4/25/17, 5:07 PM
Unreadable format, as mentioned in this thread.
{"key:A<A<s>>":[["values"],["here"]]}
This doesn't mean anything to me as a developer, unless I've seen the spec. It's kludgy. It's not reverse-compatible if you don't install a TJSON parser.
Two solutions immediately strike me as better, one has been mentioned here.
(1) Not optimal, but actually spell out words in key names. There's no reason "A" has to mean Array. That doesn't mean anything to me. If I'm seeing it for the first time and have no idea what TJSON is, the very next value could be "key2:B<B<t>>".
(2) Far more optimal: as an example has been provided with "date", just nest objects as values for any extended types. Then this spec is completely reverse compatible and compliant, and as a developer I don't have to worry about parsing key names.
e.g.
{
"some_nested_array": {
"type": "array.array.string",
"value": [
["values"],
["here"]
]
}
}
Extremely easy to implement and not reliant on a governing body.by tobltobs on 4/25/17, 4:48 PM
by laurent123456 on 4/25/17, 4:12 PM
So it feels more like a machine format, but in that case why not use a more efficient one, like a binary format?
by hajile on 4/25/17, 5:11 PM
by escherize on 4/25/17, 4:45 PM
by user5994461 on 4/25/17, 4:54 PM
http://json-schema.org/examples.html
Been there for almost a decade. Already supported by all the major json libraries in all the major languages.
by ungzd on 4/25/17, 4:48 PM
by dolmen on 4/25/17, 5:30 PM
by pfooti on 4/25/17, 4:22 PM
by dep_b on 4/25/17, 5:22 PM
by TazeTSchnitzel on 4/25/17, 6:25 PM
{"foo:O":{}}
really tell you more than {"foo":{}}
?The ability to encode sets, integers, binary data and time stamps is useful. But why tag things which are what they look like? It's a waste of space.
by zwerdlds on 4/25/17, 4:15 PM
by panic on 4/25/17, 6:19 PM
by keredson on 4/25/17, 5:53 PM
by Entangled on 4/25/17, 6:18 PM