File: test.py

package info (click to toggle)
libjsonparser 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,012 kB
  • sloc: ansic: 1,139; python: 68; makefile: 62; sh: 15
file content (11 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
import sys
sys.path.append('..')

import jsonparser

data = open('test.json', 'rb').read()
try:
    output = jsonparser.decode(data)
    print output
except jsonparser.JSONException, e:
    print 'Error -> %s' % e