support jsonify Global Object and document