JSON for Server Communication

December 24, 2010

I have ported a Java JSON serializer to C# and included it in build 155 of the runtime.

Here is how JSON classes map to Smalltalk, C#, and Java:

=> Dictionary (Smalltalk)
=> Dictionary (C#)
=> HashMap (Java)

=> List (Smalltalk)
=> List (C#)
=> ArrayList (Java)

and the others (string, integer, double, boolean) are what you would expect in each.

On the Google server, objects are stored in JSON format in the database.

On the Smalltalk client, the low-level serialization mechanism for objects will use the same JSON format.

So now everything is in place for storing Smalltalk objects in the Google App Engine database. And, as I said in an earlier post, this object database will be accessible to server-side scripting languages like Groovy or Clojure.

A server-based file system should be in place by early next week.

It will allow online developers to store their applications and data. And it will allow desktop developers to share online files and move files between online and desktop storage.


One Response to “JSON for Server Communication”

  1. Andy Burnett Says:

    I am delighted to hear that the object database will be accessible by other languages (I didn’t notice the entry where you explained that previously). That means that I can solve my problem of smart phone access, because I can code up an HTML5 client for those users, and let them access the data through e.g. a python application.

    Actually, that raises the question of URL mapping and redirection. Presumably, if we buy a developer license, we can deploy it on our own Google App Engine accounts, and take care of the redirection ourselves, right?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: