Improve XML to JSON conversion and add creation of a CompactNode (Tree2Object replacement).