[Pharo-users] NeoJSON mapping question

BrunoBB smalltalk at adinet.com.uy
Mon Feb 25 22:09:40 EST 2019


Hi,

Finally i found a much more acceptable solution :)

neoJsonMapping: mapper
	"Map the receiver from a json with <NeoJSONObjectMapping> <mapper>"
	mapper for: self do: [ :mapping |
		mapping mapAccessor: #locator mutator: #setLocator: to: 'booking'.
	].

setLocator: aDictionary
	locator := aDictionary at: '@locator'

regards,
bruno



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



More information about the Pharo-users mailing list