You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_null_keys_print.c 394 B

123456789101112131415161718
  1. #include <stddef.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include "json.h"
  6. #include "parse_flags.h"
  7. int main(int argc, char **argv)
  8. {
  9. struct json_object *new_obj;
  10. new_obj = json_tokener_parse("{ \"foo\\u0000bar\": \"qwerty\\u0000asdf\" }");
  11. printf("new_obj.to_string()=%s\n", json_object_to_json_string(new_obj));
  12. json_object_put(new_obj);
  13. return EXIT_SUCCESS;
  14. }