write value parser for parseObject