Re: [Pharo-users] Need help with NeoJSON reader definition

2017-09-26 Thread Sven Van Caekenberghe
Hi Joachim, Have a look at this new example: === Name: Neo-JSON-Tests-SvenVanCaekenberghe.43 Author: SvenVanCaekenberghe Time: 26 September 2017, 2:14:01.71055 pm UUID: f40af758-7816-0d00-89cd-641e08d6220e Ancestors: Neo-JSON-Tests-SvenVanCaekenberghe.42 Add #testVirtualTransferObject as another

Re: [Pharo-users] Need help with NeoJSON reader definition

2017-09-26 Thread jtuc...@objektfabrik.de
I probably need to send a bit more info. My latest attempt was this:     mapper := NeoJSONReader new.     mapper for: #RootObject customDo: [:mapping | mapping mapWithValueSchema: #TransferMessage].     mapper         for: #TransferMessage         do: [:mapping |             (mapping mapIn

[Pharo-users] Need help with NeoJSON reader definition

2017-09-25 Thread jtuc...@objektfabrik.de
Hi there, I am having a hard time configuring a NeoJSONReader for a JSON file like this: {     "Paging": { someStuff    },     "ErrorMessage": null,     "ErrorCode": 0,     "Data": [     {object1},         {object2}         ] } Where I want to ignore everything but the list named