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!
---- peace, sergio photographer, journalist, visionary
Public Key: http://bit.ly/29z9fG0 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101