No, Magma and Fuel are not intended for interfacing to external environments, but reaching INTO the Smalltalk environment to give the user more power over the objects there.
On Fri, Aug 11, 2017 at 7:26 PM, Alan Pinch alan.c.pinch@gmail.com wrote:
Yes, and NeoJSON does schemas. On schemas, ASN1 has Modules.
I need substitutability though, and I know Magma and Fuel are expert at this, as is possibly Xtreams. I looked at Fuel a while back but not Magma or Xtreams. I think NeoJSON does custom mappings as well. I am trying to fold in NeoJSON now...Would changing Magma's/Fuel's encoding be possible?
- Alan
On Aug 11, 2017, at 20:09, Chris Muller ma.chris.m@gmail.com wrote:
Magma and Fuel do not serialize to JSON but their own, proprietary, binary formats.
On Fri, Aug 11, 2017 at 4:13 PM, Alan Pinch alan.c.pinch@gmail.com wrote:
Thanks for the pointers, I'll also need pre/post on write. I realize I also need support for schemes so I will peruse code and see the XML Parser also. Would Magma or Fuel support JSon encoding? Also did the FLDecoder get replaced.
Thank you
alan
On Aug 11, 2017, at 16:52, Chris Muller asqueaker@gmail.com wrote:
The one on SqueakSource is pretty tight (portable):
Installer new merge: #jsonParser
There are only about 10 implementations of #jsonWriteOn:, which could
be replaced with #jsonWriteOn:do:, taking one-arg block as the second
argument, or a visitor object if more flexibility is needed.
On Fri, Aug 11, 2017 at 2:42 PM, Alan Pinch alan.c.pinch@gmail.com wrote:
Good afternoon. I have a need for doing JSON encoding in both Squeak & pharo so I would like a common framework. As I need to do pre/post processing each object written, it needs to be a SAX-DOM style callback parser. What would be my best option for JSon encoding in both Squeak and Pharo? If the sax is absent I will need to write it and I would like to do so in an existing encoder framework, such as Magma or Fuel. What would be best?
alan