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 can I read json as mutable document #66

Closed
xiegx94 opened this issue Feb 22, 2022 · 2 comments
Closed

How can I read json as mutable document #66

xiegx94 opened this issue Feb 22, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@xiegx94
Copy link

xiegx94 commented Feb 22, 2022

I found there is an API yysjon_mut_read_file in readme. But it doesn't exist in yyjson.h. Should I copy yyjson_doc as yyjson_mut_doc every times?

@faultaddr
Copy link
Contributor

U should do a conversion every time as far as I can see.

@ibireme ibireme added the documentation Improvements or additions to documentation label Feb 22, 2022
@ibireme
Copy link
Owner

ibireme commented Feb 22, 2022

Yes, you should make a mutable copy, the readme is wrong and has been updated: 68d08a5

@ibireme ibireme closed this as completed Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants