Divided the object parser into input and output parsers.