jscheffl commented on PR #44869: URL: https://github.com/apache/airflow/pull/44869#issuecomment-2539052383
> Thanks @jscheffl, here is one rough attempt I can think of. Pass `stringify: false` in the API. Try `JSON.stringify()` and set highlight to true to use `<SyntaxHighlighter />`. On error just convert to string using `String()` and set highlight to be false to render it as normal `<Text>`. But this also means if there is `__str__` implemented for the custom object in Python land then JS `String()` value might be different in case the object doesn't fit `JSON.stringify`. > >  Yeah, but this is only rough :-) Then rather to it "right" in a follow-up PR :+1: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
