Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-12-25 09:41:08 (GMT)
committer Nirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-12-25 09:44:44 (GMT)
commitc6011c718a26e504b8af66cdf0ebb3b945e94360 (patch)
treec8adf5d4a0a45e88d16f77d29f66312bd51e7110
parentb27f456ef287a467b31bccc8d0865e39c85e2fc0 (diff)
Use cjson instead of json
For consistency with other Sugar components.
-rw-r--r--model.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/model.py b/model.py
index 2bad449..7a8e4af 100644
--- a/model.py
+++ b/model.py
@@ -16,7 +16,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
-import json
+import cjson
import sha
import gobject
import base64
@@ -60,10 +60,10 @@ class Model(gobject.GObject):
break
def serialize(self):
- return json.write(self.data)
+ return cjson.encode(self.data)
def deserialize(self, data):
- self.data = json.read(data)
+ self.data = cjson.decode(data)
if not self.data.has_key('shared_links'):
self.data['shared_links'] = []
if not self.data.has_key('deleted'):