When we use JSON data generated by a Python script, we must keep in mind that they may contain additional backslashes in them. Hence, these data cannot be directly used in Studio Pro for processing.
In this article, you find an easy solution to solve this situation, so you can work with the JSON file successfully.
Instructions
To remove the backslashes from the JSON data returned by the Python script, do as follows:
- Using the Create file activity, create a JSON file and write the JSON data to it.
- Next, use the Read text file activity with the “File type” selected as JSON.
- Run the workflow.
Check the newly created JSON file. Notice that the data is read properly without any backslashes.