arrays - Java - convert TreeNode into JSONArray -


i using library construct tree of strings: https://github.com/shell-software/tree, , jar library deal jsons.

i want convert treenode into jsonarray, so:

assuming every node children jsonarray, each leaf jsonobject , root jsonarray, how can iterate nodes of tree create json?


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -