> On 16 Dec 2016, at 15:23, stepharong <stephar...@free.fr> wrote:
> 
> Ok I see.
> 
> I was doing
> 
> GameCollection >> neoJsonOn: neoJSONWriter
> 
>       neoJSONWriter
>               writeObject: games
> 
> 
> GameItem >> neoJsonOn: neoJSONWriter
>       self class instanceVariables
>               do: [ :each |
>                               neoJSONWriter writeObject: (self instVarNamed: 
> each) ]
> 
> 
> Now it did not work because byteString is not covered and I found that 
> strange.
> 
> I will use your solution.
> 
> I read the section 5 before so there is something missing there.
> I will see how I can add an example.
> 
> May be we should improve the class comment of mapper stating this class 
> methods.

It is right there, in NeoJSONMapper's class comment

...
A mapping can be specified explicitely on a mapper, or can be resolved using 
the #neoJsonMapping: class method.
...

This is the superclass of both NeoJSONReader and NeoJSONWriter.

But we should add it to the book chapter too.

> Stef


Reply via email to