diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2012-08-09 13:22:12 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-08-13 18:46:56 (GMT) |
commit | fde52383c637b1d5648d7550a29bb9b1215e896c (patch) | |
tree | ecfb65718dfa6d31e8897bf3775a0be30e84f801 /readbookmark.py | |
parent | 57004cae098c6daefe7d255459b0b27435a3b1dc (diff) |
Use json as included in Python SL #3142
We use json as included in Python. This will make Sugar dependent on
Python 2.6 and Python 2.7 to have the highest JSON performance.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'readbookmark.py')
-rw-r--r-- | readbookmark.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/readbookmark.py b/readbookmark.py index 6a8e96c..c0afe4f 100644 --- a/readbookmark.py +++ b/readbookmark.py @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import cjson +import json class Bookmark: @@ -39,12 +39,12 @@ class Bookmark: if self.content == '' or self.content is None: return '' - note = cjson.decode(self.content) + note = json.loads(self.content) return note['title'] def get_note_body(self): if self.content == '' or self.content is None: return '' - note = cjson.decode(self.content) + note = json.loads(self.content) return note['body'] |