NeoJSON ignore some instance variables
July 25, 2018
8:17 a.m.
Hi, what is the best way to ignore instance variables when serializing with NeoJSON? I figured out this so far... (NeoJSONWriter on: stream) for: Something do: [ :mapping | mapping mapInstVars: mapping identifier instVarNames \ #(unwanted) ]; nextPut: aSomething Thanks, Peter
July 25, 2018
8:25 a.m.
On 25 Jul 2018, at 10:17, Peter Uhnák <i.uhnak@gmail.com> wrote:
Hi,
what is the best way to ignore instance variables when serializing with NeoJSON?
I figured out this so far...
(NeoJSONWriter on: stream) for: Something do: [ :mapping | mapping mapInstVars: mapping identifier instVarNames \ #(unwanted) ]; nextPut: aSomething
Thanks, Peter
That is a better and more beautiful way to do it then I would have come up with myself ;-)
2927
Age (days ago)
2927
Last active (days ago)
1 comments
2 participants
participants (2)
-
Peter Uhnák -
Sven Van Caekenberghe