tensorstore.CodecSpec.to_json(self, include_defaults: bool = False) → Any Converts to the JSON representation.