Exporting json that has a structure constructed from elements matched in DB

I'm also looking into serialization. Did you get the apoc function to work in the end?
What language are you using?

From python I think you can just do result.dict() but you still have to reformat the results.

Did you review these posts about using subgraph and apoc.convert ?