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

Is there a way to append to file? #161

Closed
bhavyanshu opened this issue Nov 20, 2014 · 1 comment
Closed

Is there a way to append to file? #161

bhavyanshu opened this issue Nov 20, 2014 · 1 comment

Comments

@bhavyanshu
Copy link

The default json_object_to_file only writes to the file. I can't find anything related to appending to file. Why not let us open file using fopen in append mode and just provide a function json_object_to_file accepting file pointer as argument or something like that or just provide an optional argument for specifying file modes. Any way would be good.

@cameronkerrnz
Copy link

This would be very good for logging as JSON, particularly if using the likes of logstash, with its 'jsonlines' input module. This is a requirement for a project I'm working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants