refine code to support implicit reference of JSON pointer