Added #as_json, #to_json to most objects