test json serialization/deserialization mechanism