Thrift requires a schema to specify structure of objects to
serialize/deserialize.
And while there are multiple possible output formats, in practice
one(s) used in production are binary formats. So examples are not very
meaningful: property names become property ids and so on.
So, exact bytes constructed for the example depend on Thrift Schema
used (and one must be used); and these will not be piece of text but a
binary sequence.
For this reason there aren't too many conversion tools, although one
can theoretically convert arbitrary hash maps to Thrift schema defined
structures.
-+ Tatu +-