#1 2017-03-24 15:57:53

mohsenti
Member
Registered: 2015-04-11
Posts: 72

JSONToObject error/warning log

Hi,

If I add j2oIgnoreUnknownProperty to JSONToObject options it will continue to read the JSON but it whould be nice to have an output from errors or problems. I looked at the code an it will just exit if it faces to any issue, can we have a call back event for error/warning ?
I can implement one if its ok.

Offline

#2 2017-03-24 17:20:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,225
Website

Re: JSONToObject error/warning log

Use a custom serialization for the class, not automated serialization, then.
No need to complexify the current implementation by adding callbacks.

Offline

#3 2017-03-24 17:38:36

mohsenti
Member
Registered: 2015-04-11
Posts: 72

Re: JSONToObject error/warning log

Yes I know but it makes everything much more complicated, I have many classes and automated serialization works fine for most of them, I just want a log for automated serialization.

Offline

Board footer

Powered by FluxBB