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