uranusjr commented on code in PR #28777:
URL: https://github.com/apache/airflow/pull/28777#discussion_r1103964681


##########
airflow/utils/json.py:
##########
@@ -44,7 +44,12 @@ def loads(self, s: str | bytes, **kwargs):
 
 
 class WebEncoder(json.JSONEncoder):
-    """This encodes values into a web understandable format. There is no 
deserializer"""
+    """
+    This encodes values into a web understandable format. There is no 
deserializer.
+    It parses datetime, dates, Decimal and bytes. In order to parse the custom
+    classes and the other types, and since it's just to show the result in the 
UI,
+    we return repr(object) for everything else.
+    """

Review Comment:
   ```suggestion
       """This encodes values into a web understandable format. There is no 
deserializer.
   
       This parses datetime, dates, Decimal and bytes. In order to parse the 
custom
       classes and the other types, and since it's just to show the result in 
the UI,
       we return repr(object) for everything else.
       """
   ```



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