Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child array recursion limited #2

Open
Jiab77 opened this issue Jun 19, 2019 · 0 comments
Open

Child array recursion limited #2

Jiab77 opened this issue Jun 19, 2019 · 0 comments
Assignees
Labels
help wanted Extra attention is needed python Related to the Python version

Comments

@Jiab77
Copy link
Owner

Jiab77 commented Jun 19, 2019

During my internal testing, it seems to fail when "html":"[]" contains more than 2 elements... 🤔

Received:
 {"<>":"div","class":"${class}", "id":"${id}","html":[{"<>":"img", "src":"${src}","alt":"${alt}"},{"<>":"p","text":"Hi ${name}! Welcome to json2html!"},{"<>":"p","text":"Awesome it works!"}]}
Traceback (most recent call last):
  File "json2html.test.py", line 347, in <module>
    main()
  File "json2html.test.py", line 344, in main
    json2html.transform(payload, data)
  File "json2html.test.py", line 289, in transform
    cls._merge(debug)
  File "json2html.test.py", line 148, in _merge
    if (cls.props[j]['iteration'] == cls.props[i]['iteration']):
IndexError: list index out of range
@Jiab77 Jiab77 added help wanted Extra attention is needed python Related to the Python version labels Jun 19, 2019
@Jiab77 Jiab77 self-assigned this Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed python Related to the Python version
Projects
None yet
Development

No branches or pull requests

1 participant