Skip to content

shanicohen1902/json2tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2tree

Parse Nested Json as a tree uses Jackson.

Simple java program to parse nested Json. Traverse the Json as a Tree (recursive DFS)

Methods:

  1. countNodes - Count all the nodes.
  • Input - Json Root
  • Output - Total number of nodes
  1. countNodesUnderNode - count number of nodes under specific node
  • Input - Json Root, String search, String field
  • output - Total number of nodes
  1. countNodesFieldsFrequency - display Map of <field,frequency>
  • Input - Json Root
  • Output - Display of the HashMap (void method)

About

Parse Nested Json as a tree

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages