Source code: Lib/json/__init__.py Compact encoding: Pretty printing: Decoding JSON: Specializing JSON object decoding: Note JSON is a subset of YAML 1.2. The JSON produced by this module’s default settings (in particular, the default separators value) is also a subset of YAML 1.0 and 1.1. This module can thus also be used as a YAML serializer.