Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def json_decode(jsonstr):
    try:
        return json.loads(jsonstr)
    except (ValueError, TypeError), le:
        raise DecodeError(jsonstr, le)
        


src/s/i/simplegeo-3.0.127/simplegeo/models.py   simplegeo(Download)
import time
import copy
import simplegeo.json as json
from util import json_decode, deep_swap, deep_validate_lat_lon, is_simplegeohandle, SIMPLEGEOHANDLE_RSTR
 
    def from_json(cls, jsonstr):
        return cls.from_dict(json_decode(jsonstr))
 
    def to_json(self):
        return json.dumps(self.to_dict())

src/p/y/python-simplegeo-HEAD/simplegeo/models.py   python-simplegeo(Download)
import time
import copy
import simplegeo.json as json
from util import json_decode, deep_swap, deep_validate_lat_lon, is_simplegeohandle, SIMPLEGEOHANDLE_RSTR
 
    def from_json(cls, jsonstr):
        return cls.from_dict(json_decode(jsonstr))
 
    def to_json(self):
        return json.dumps(self.to_dict())