Added the "ObjectToJSON" procedure.