fallback to json if simplejson isn't available