test works on 5 use cases of objects and arrays in json format, not yet
xml; handles trees and branching of any length