I have a request log from a server JSON REST API. I want to be able to turn this into a python script to replay that sequence of events.
Ideally i'd like the content to be easy to modify. So it would be perfect if I could actually translate the JSON into python Dictionaries/lists. i.e. From -
{"BoolVal":true, "SomeList":["a","b","c"]}
to
data = {"BoolVal":True, "SomeList":["a","b","c"]}
Are there any differences other than the true/false True/False that i'd need to be aware of?
*I need to do this on the server which does not have python. i.e. I want my users to be able to download a script to replay their actions.
"while python allows either single or double'' /", string escaping etc. Do not attempt to write your own parser usingstring.replace(), just import the json module and useload()orloads().