Documents and Collections An array of documents consists of a set of documents separated by commas and enclosed within  [  and  ] characters. [{"Name": "Aruba", "Code:": "ABW"}, {"Name": "Angola", "Code:": "AGO"}] MySQL supports the following Python value types in JSON documents: Collections are containers for documents that share a purpose and possibly share one or more indexes. Each collection has a unique name and exists within a single schema. The term schema is equivalent to a database, which means a group of database objects as opposed to a relational schema, used to enforce structure and constraints over data. A schema does not enforce conformity on the documents in a collection. In this quick-start guide: 3868 •Simple array of documents for Python: •numbers (integer and floating point) •strings •boolean (False and True) •None •arrays of more JSON values •nested (or embedded) objects of more JSON values Collections •Basic objects include: •Basic operations scoped by collections include: Object form Description db db  is a global variable assigned to the current active schema. When you want to run operations against the schema, for example to retrieve a collection, you use methods available for the  db variable. db.get_collections() db.get_collections() returns a list of collections in the schema. Use the list to get references to collection objects, iterate over them, and so on. Operation form Description db. name .add() The add() method inserts one document or a list of documents into the named collection. db. name .find() The find() method returns some or all documents in the named collection. db. name .modify() The modify() method updates documents in the named collection. db. name .remove() The remove() method deletes one document or a list of documents from the named collection.