Skip to content

Using melt.js on nested json data #1

@jefffriesen

Description

@jefffriesen

I tried melt.js on a complex json structure like this:
https://gist.github.com/jefffriesen/7325451

I got this error:
Uncaught TypeError: Object # has no method 'forEach' (line 43).

My guess is it doesn't work on nested data structures like this. If that is true, would that be something you would consider adding?

For more context, here is the stackoverflow question I am trying to solve to visualize an XML file with d3.js:
http://stackoverflow.com/questions/18425019/converting-xml-to-json-with-generic-keys-instead-of-element-names-as-keys

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions