The Artima Developer Community
Sponsored Link

Agile Buzz Forum
JSON handling in Smalltalk

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
JSON handling in Smalltalk Posted: Oct 12, 2007 6:28 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: JSON handling in Smalltalk
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

After the earlier post on JSON, I decided to take a look at the Squeak package. Importing it into Cincom Smalltalk was fairly simple - here are the steps I used:

  1. Downloaded the mcz file
  2. Unzipped it to get the files
  3. Loaded BraceConstructor and FileOut30 into my image. The former is for Squeak array compatibility; the latter handles bringing in Squeak files
  4. During the file in, I had to deal with namespace issues (TestCase), and a missing class (SystemOrganization)
  5. Fix up all the uses of _ instead of :=
  6. Create a new namespace and move all the JSON classes into it
  7. Test out a few examples, found here.

I published it as JSONReader in the public store (there's a JSON package out there already - it seems to be focused on serializing to JSON). I should probably consider unifying the two. Anyway, I can't vouch for this code much - but it's a start.

Technorati Tags: ,

Read: JSON handling in Smalltalk

Topic: Pyrrhic Victory, Part II Previous Topic   Next Topic Topic: More on Panels

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use