Provides a json document object representation, similar to \DOMDocument