[PATCH] Add function to parse an object of unspecified type (take 2)