Searched refs:jobj (Results 1 – 2 of 2) sorted by relevance
24 struct json_object *jobj; in print_json() local27 jobj = json_object_new_object(); in print_json()28 json_object_object_add(jobj, "test_string", json_object_new_string(test_string.c_str())); in print_json()30 std::cout << json_object_to_json_string_ext(jobj, flag) << std::endl; in print_json()32 json_object_put(jobj); // Delete the json object in print_json()
88 json_object *jobj = cper_to_ir(cper_file); in cper_to_str_ir() local89 char *str = jobj ? strdup(json_object_to_json_string(jobj)) : NULL; in cper_to_str_ir()91 json_object_put(jobj); in cper_to_str_ir()421 json_object *jobj = cper_single_section_to_ir(cper_section_file); in cper_single_section_to_str_ir() local422 char *str = jobj ? strdup(json_object_to_json_string(jobj)) : NULL; in cper_single_section_to_str_ir()424 json_object_put(jobj); in cper_single_section_to_str_ir()