| 1 |
Test setting, then resetting a custom serializer: |
| 2 |
my_object.to_string(standard)={ "abc": 12, "foo": "bar" } |
| 3 |
my_object.to_string(custom serializer)=Custom Output |
| 4 |
Next line of output should be from the custom freeit function: |
| 5 |
freeit, value=123 |
| 6 |
my_object.to_string(standard)={ "abc": 12, "foo": "bar" } |
| 7 |
Check that the custom serializer isn't free'd until the last json_object_put: |
| 8 |
my_object.to_string(custom serializer)=Custom Output |
| 9 |
Next line of output should be from the custom freeit function: |
| 10 |
freeit, value=123 |