fork download
  1. import json as simplejson
  2. request = {}
  3. params = {}
  4. tri = {}
  5. tri["InclueSchema"] = "true"
  6. tri["UserFilter"] = ""
  7. tri["MaxRecords"] = -1
  8. tri["Parameters"] = [{"Name":"p_1", "Value":999}]
  9. request["id"] = "xxx";
  10. request["method"] = "Some.Method";
  11. params["aTableNameArray"] = ["workers"];
  12. params["aTableRequestInfoArray"] = [tri];
  13. request["params"] = params;
  14. print simplejson.dumps(request);
Success #stdin #stdout 0.03s 6736KB
stdin
Standard input is empty
stdout
{"params": {"aTableNameArray": ["workers"], "aTableRequestInfoArray": [{"MaxRecords": -1, "UserFilter": "", "Parameters": [{"Name": "p_1", "Value": 999}], "InclueSchema": "true"}]}, "id": "xxx", "method": "Some.Method"}