netheril96 / StaticJSON

Fast, direct and static typed parsing of JSON with C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request]Can we ignore the failed property in ObjectHandler.

heroboy opened this issue · comments

Ignore the failed property, leave it original value, and continue to process the rest ones. Maybe add another flag?

What about map handlers and list handlers? There is no way to pass such flags to them. Besides, this goes against the whole meaning of this library, namely, strict checking.

Consider the json is a config file edit by some person. When he miss typed some value, I don't want abandon the whole json file but reading it as much as possible.

Or I may changed class member type in c++ side without changing the name, and still keep the json file usable.

I don't want to support any of these kinds of use cases. There are too many ways a JSON file can go wrong, and guessing what it really means is a hard task.