tensorstore.Context.Resource.to_json(self, include_defaults: bool = False) Any

Returns the JSON representation of the context resource.

Example

>>> context = ts.Context(
...     {'cache_pool#a': {
...         'total_bytes_limit': 10000000
...     }})
>>> context['cache_pool#a'].to_json()
{'total_bytes_limit': 10000000}