stefankroes/ancestry — Issue #82: arrange to_json
Author: tejo
Created: 2011-10-31 13:26:20+00:00
State: open

Hi there,

I need to serialize an arranged tree of node to json format. If I call node.arrange.to_json I get something like:

{"#":{"#":{}}}

this is because arrange returns an hash.

actually I can get this working looping through the hash and calling to_json for every node object.

There is a better way to do that?

Thanks

Matteo