Since this approach means that we go through the serialization code in XmlModule, it is not necessary to wrap the value of "show_captions" with json.dumps (on line 259).