Hi all,
When parsing with NeoJSON, I���m experiencing some problems.
If I parse a JSON representation using NeoJSONReader>>next (i.e. not according to a schema), it parses nil fields just fine.
But when I explicitly set a value schema, it won���t parse it in the case it is nil (or ���null��� in JSON). Is there a way to let it return nil in the case the parser encounters ���null���, and otherwise serialize it as a value schema (e.g. a Point class).
(NeoJSONReader on: ���null' readStream)
mapInstVarsFor: Point;
nextAs: Point.
Is there a way to adapt the above snippet so that it evaluates to ���nil��� instead of resulting in an error? I ask because I am parsing an API response which sometimes contains a ���null��� field, and sometimes a JSON object for that field.
Thanks.