Prior to 3.6 the json module handles only str types. After that more types are supported out of the box.