How to return the json tree data of a node and it's all child nodes.input will be a node

I have a node match(a)-[r*1..10]-(b) .I want that if the pass the input as node named 'a' then all the properties of connected child nodes properties should be return as a key and value in the parent node in nested tree form in json format.

Please suggest any idea on this.