def test_supports_nested_dicts_and_lists(self):
        class OtherForm(Form):
            b = BooleanField()

        class MyForm(Form):
            a = FieldList(FormField(OtherForm))
        data = {
            'a': [{'b': True}]
        }
        assert flatten_json(MyForm, data) == {'a-0-b': True}
dataset/ETHPy150Open kvesteri/wtforms-json/tests/test_json_decoder.py/TestJsonDecoder.test_supports_nested_dicts_and_lists/original