-
tensorstore.Schema.to_json(self, include_defaults: bool =
False
) Any Converts to the
JSON representation
.Example
>>> schema = ts.Schema(dtype=ts.uint8, ... chunk_layout=ts.ChunkLayout(grid_origin=[0, 0, 0], ... inner_order=[0, 2, 1])) >>> schema.to_json() {'chunk_layout': {'grid_origin': [0, 0, 0], 'inner_order': [0, 2, 1]}, 'dtype': 'uint8', 'rank': 3}