Update jsontest example for the new serialization interface