Testing json

Simple writes and object nesting.