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

当json对象是空的时候,序列化到文件再读出来会报错 #39

Closed
leadsoft-ware opened this issue Jul 19, 2021 · 2 comments
Closed

Comments

@leadsoft-ware
Copy link

如题,我序列化了一个空的json对象到文件,然后第二次读取的时候直接报错了
提示

terminate called after throwing an instance of 'configor::configor_deserialization_error'
  what():  config deserialization error: unexpected token 'end_of_input'
Aborted

这是我使用的方式错了还是库原本就有bug

@Nomango
Copy link
Owner

Nomango commented Jul 19, 2021

@leadsoft-ware 提供下代码看看

@leadsoft-ware
Copy link
Author

没事了,是我自己弄错了

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