dnewcome/jath — Issue #4: Support for recursively nested structures
Author: masto
Created: 2012-01-04 18:58:33+00:00
State: open

I may be missing it but there doesn't seem to be a way to deal with XML like:

```xml

```

(In the case where there can be an arbitrary level of nesting).

This could be turned into e.g.:

```json
{
items: [
{
name: "foo",
status: 1,
items: [
{
name: "bar",
status: 2
},
{
name: "baz",
status: 3,
items: [
{
name: "biff",
status: 4
}
]
}
}
}
}
```

Or even...

```json
[
foo: {
status: 1,
bar: {
status: 2
},
baz: {
status: 3,
biff: {
status: 4
}
}
}
]
```

It seems like being able to refer to a named key elsewhere in the template might make the first translation possible.