Same scheme for parsing all types of objects
Added Location support to parser