Skip to content

Commit fb25dff

Browse files
authored
Update json_parse_node.py
serialize objects to bytes in a JSON compatible way
1 parent 8450921 commit fb25dff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/serialization/json/kiota_serialization_json/json_parse_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def get_bytes_value(self) -> Optional[bytes]:
233233
Returns:
234234
bytearray: The bytearray value from the nodes
235235
"""
236-
base64_string = str(self._json_node)
236+
base64_string = json.dumps(self._json_node)
237237
if not base64_string:
238238
return None
239239
return base64_string.encode("utf-8")

0 commit comments

Comments
 (0)