NeoJSON is not bound to use instVars. Look at the method mapAccessor: and friends.

Norbert

Am 09.02.2017 um 22:50 schrieb sergio ruiz <sergio.rrd@gmail.com>:


I am working on the U of the CRUD part of my Teapot/Voyage REST interface, and found that I cannot get the voyageId to be delivered as part of the REST response..

in order to do RUD, I will need that in the feed.

the problem is that NeoJSON uses the instance variables to JSON encode the object.

to circumvent this, i made an instance variable called ���id���.. and made an accessor like so:

id
^ self voyageId value

so i can do something like

station id -> ���23434234234243423432���

but when i inspect the object, or send it back from voyage, id is nil..

rather than mirror voyage���s _id, i would like access to it in JSON encoding, but i can see that might be a problem..

any ideas?

thanks!