json Docs: Trivial update to the code example (GH-2465)

Replace `dumps` with `json.dumps`
1 file changed