fixed trailing comma issue in Alistair's parseObj