code: def to_json(self):
          
  
          result = super(FieldsResource, self).to_json()
          result['fields'] = self.fields_with_locales()
          return result
docs: Returns the JSON Representation of the resource.