parameters: (cameras)
return_statement: return obj
docstring: Write cameras to a json object
docstring_summary: Write cameras to a json object
docstring_tokens: Write cameras to a json object
function: def cameras_to_json(cameras):
      """
      Write cameras to a json object
      """
      obj = {}
      for camera in cameras.values():
          obj[camera.id] = camera_to_json(camera)
      return obj
function_tokens: def cameras_to_json ( cameras ) : obj = { } for camera in cameras . values ( ) : obj [ camera . id ] = camera_to_json ( camera ) return obj