Refactored 'json' package a bit.
Added Document.valueOf() factory methods.
Updated Document.toString() method.