tristanpenman/valijson

How can we validate boolean type if it is string in .json?

phuchm opened this issue · 0 comments

I use boost c++ to read/write .json file. The problem here is boost will automatically escape (convert) to string type. Therefore, if I create a json object with integer and boolean type, all of us will come string type in .json file.
I use Validator validator(Validator::kWeakTypes) to face with integer type but it still doesn't work with boolean type.

How can I resolve it?