json
        
ToJsonModuleOld            (OldTypeConversionModule)
        
¶
    Convert arbitrary types into json.
Very early days for this module, it doesn't support a lot of types yet.
Source code in core/json.py
          class ToJsonModuleOld(OldTypeConversionModule):
    """Convert arbitrary types into json.
    Very early days for this module, it doesn't support a lot of types yet.
    """
    _module_type_name = "to_json"
    @classmethod
    def _get_supported_source_types(self) -> typing.Union[typing.Iterable[str], str]:
        return JSON_SUPPORTED_SOURCE_TYPES
    @classmethod
    def _get_target_types(self) -> typing.Union[typing.Iterable[str], str]:
        return ["json"]
    def convert(
        self, value: Value, config: typing.Mapping[str, typing.Any]
    ) -> typing.Any:
        input_value: typing.Any = value.get_value_data()
        input_value_str = convert_to_json(
            self._kiara, data=input_value, convert_config=config
        )
        return input_value_str