Thank you Sven for your follow up of the recent JSON/STON/Tirade discussion by providing an STON implementation for Squeak 4.3 and working with Dale to get it to other Smalltalks (github). [1] I think your STON implementation will be very useful for my work. It works fine in Squeak 4.3 updated to the latest change [2]. There is a class STON used as a singleton. I assume this is the equivalent of the JSON object in web browsers, right? --Hannes ----------------------------------------------------------------------------------------------------------------- [1] http://www.mail-archive.com/pharo-project@lists.gforge.inria.fr/msg62706.htm... Example object Dale H. writes Tue, 24 Apr 2012 10:23:18 -0700 Sven, I looked at your sample document in the pdf: TestDomainObject { #created : DateAndTime [ '2012-02-14T16:40:15+01:00' ], #modified : DateAndTime [ '2012-02-14T16:40:18+01:00' ], #integer : 39581, #float : 73.84789359463944, #description : 'This is a test', #color : #green, #tags : [ #two, #beta, #medium ], #bytes : ByteArray [ 'afabfdf61d030f43eb67960c0ae9f39f' ], #boolean : false } ----------------------------------------------------------------------------------------------------------------- [2] Tests in Squeak 4.3 MCHttpRepository location: 'http://ss3.gemstone.com/ss/STON' user: '' password: '' loads fine in a fully updated Squeak-4.3 all 86 tests are green. On 5/5/12, Serge Stinckwich <serge.stinckwich@gmail.com> wrote:
On Sat, May 5, 2012 at 4:02 AM, Sven Van Caekenberghe <sven@beta9.be> wrote:
Hi,
STON - Smalltalk Object Notation is a lightweight text-based, human-readable data interchange format for class-based object-oriented languages like Smalltalk. It can be used to serialize domain level objects, either for persistency or network transport. As its name suggests, it is based on JSON (Javascript Object Notation). It adds symbols as a primitive value, class tags for object values and references.
Please read the paper here:
https://github.com/svenvc/ston/blob/master/ston-paper.md
The project lives here:
https://github.com/svenvc/ston
The code can be found here as well:
http://ss3.gemstone.com/ss/STON
This implementation works on Pharo 1.3, 1.4 and 2.0 as well as on Squeak.
Last week Dale Henrich helped me get started with filetree/git (https://github.com/dalehenrich/filetree) and I like it. Check it out! He also ported STON to Gemstone, and is working on Amber and Cuis ports (https://github.com/dalehenrich/ston).
Welcome on board ;-)
Regards, -- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Every DSL ends up being Smalltalk http://doesnotunderstand.org/