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

Replace `dumps` with `json.dumps`
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index c4d5ee6..87dc054 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -89,7 +89,7 @@
     ...         # Let the base class default method raise the TypeError
     ...         return json.JSONEncoder.default(self, obj)
     ...
-    >>> dumps(2 + 1j, cls=ComplexEncoder)
+    >>> json.dumps(2 + 1j, cls=ComplexEncoder)
     '[2.0, 1.0]'
     >>> ComplexEncoder().encode(2 + 1j)
     '[2.0, 1.0]'