Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to pretty print json-c? #281

Closed
daiziyi opened this issue Oct 31, 2016 · 2 comments
Closed

how to pretty print json-c? #281

daiziyi opened this issue Oct 31, 2016 · 2 comments

Comments

@daiziyi
Copy link

daiziyi commented Oct 31, 2016

is it hava a function to pretty print json-c ?

@daiziyi
Copy link
Author

daiziyi commented Oct 31, 2016

json_object_to_json_string_ext(jobj, JSON_C_TO_STRING_PRETTY );

see: "json_object.h", the header file has a lot of introdution.

@hawicz
Copy link
Member

hawicz commented Oct 31, 2016

Glad you found the flag. There are a few others there too, depending on how exactly you want the output to be formatted.

@hawicz hawicz closed this as completed Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants