Changed library from simplejson to json (no external dependencies)