Added a couple of definitions which should stretch the code.
Added a helper writer.
Use the normal semantics of json marshaling, i.e. we do not fill in the top-level type.