tirkarthi commented on PR #44869:
URL: https://github.com/apache/airflow/pull/44869#issuecomment-2538999993

   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`.
   
   
![image](https://github.com/user-attachments/assets/6bda7f56-f687-47a2-827c-7bfa0d1cc760)
   


-- 
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]

Reply via email to