Add test of JSON generation for objects

But the test doesn't pass yet, because JSON generation for objects
isn't implemented.
JSON generation for objects

Not pausing or non-extra member support yet.