[Pharo-users] NeoJSON mapping question

BrunoBB smalltalk at adinet.com.uy
Mon Feb 25 17:34:14 EST 2019


How to set a path to JSON value in the mapping definition ?

I mean i have a simple object with and instance variable but the value of
this inst var is deep inside the JSON.

mapping mapInstVar: #locator to: 'locator'.

This fail because 'locator' is not in the first JSON level.

Is possible to do something like:
mapping mapInstVar: #locator to: 'booking.vars.locator'.

I already tried and fail. But i was not able to find something similar.


Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

More information about the Pharo-users mailing list