Data is kept in BSON format (Binary JSON) which is JSON with some extensions.