I am using below Python code in Apigee Hybrid.
json.dumps() function converts a Python object into a json string.
But to use this I need to do import json which is not supported.
token_components = {
"header": base64.urlsafe_b64encode(json.dumps(header).encode()).decode().rstrip("="),
"payload": base64.urlsafe_b64encode(json.dumps(payload).encode()).decode().rstrip("="),
}
Is there any alternative to achieve what json.dump does without using it ?