abstract object parsing and list parsing (todo:tests for lists)