blob: ad44a9053be6a701d1e4240994d228f8d4fcf06c [file] [log] [blame]
Eric Haszlakiewicz4b1a0662012-09-09 13:53:12 -05001Test setting, then resetting a custom serializer:
Eric Haszlakiewicz38f421a2012-09-02 15:21:56 -05002my_object.to_string(standard)={ "abc": 12, "foo": "bar" }
3my_object.to_string(custom serializer)=Custom Output
4Next line of output should be from the custom freeit function:
5freeit, value=123
6my_object.to_string(standard)={ "abc": 12, "foo": "bar" }
7Check that the custom serializer isn't free'd until the last json_object_put:
8my_object.to_string(custom serializer)=Custom Output
9Next line of output should be from the custom freeit function:
10freeit, value=123