Closed heremit closed 5 years ago
Thanks for the contribution. I will look into it. I currently don't verify type as the focus was on performance.
Note, I am only going to support this for collections and class/struct. Type mismatch for placing integer vs string will not be handled since this greatly impact overall performance
NetJSON up to 1.2.10.2 hangs if object is expected but integer given. Expected behavior: exception or current key ignoring. Code for testing:
In example "SubStruct" should be an object, but integer given. Of course it's an error in data but infinite loop should not occur anyway.