There are so many: http://en.wikipedia.org/wiki/Comparison_of_data_serialization_formats
And yet, I want some more, with my pseudo-XML (or pseudo-JSON, or whatever)
ASN/1: an XML subset, that defines how values are represented (as text, not attributes).
Netstring: length:strings,
JSON: hashes ansd arrays; keys are strings, just like values.
OGDL: trees, indentation based, with commas and parenrtheses for when you don't want new lines. #comments and references. Guaranteed round tripping, except for comments.
Property lists; NeXT to Apple.
YAML: outline indentation, name:, little quoting, {hash: value}, [arrays, ...]; &id anchors and *id references, name: value, name: !!type value, !!binary
XML: <tag>barewords</tag>, <>tag/>, attribute metadata. Basically simple, and then a whole lot of crap descended from SGML. Schemas and DTDs :-( Namespaces, references, XQuery, XSLT. An occasionally uncomfortable distinction between metadata (atributes) and data (text).
Why can't we just gedt along?
Why can't they all interconvert?
No comments:
Post a Comment