list_parse function

Convert an object to list with identical structure