Actually, when I removed json.dumps the boolean did not get serialized out. I guess that is because we are not sending the model data value, but the _from_json value (due to calling it as self.show_captions instead of getting it directly from the model data). So json.dumps stays for now. It might be better to change it to _to_json.