Merge branch '1.2'

This commit is contained in:
Petri Lehtinen 2010-06-12 22:44:21 +03:00
commit 8b2b12e05f

View File

@ -20,11 +20,13 @@ int main()
result = json_dumps(json, 0);
if(!result || strcmp(result, "{}"))
fail("json_dumps failed");
free(result);
json_object_set_new(json, "foo", json_integer(5));
result = json_dumps(json, 0);
if(!result || strcmp(result, "{\"foo\": 5}"))
fail("json_dumps failed");
free(result);
json_decref(json);