change x-json-pointer to json-pointer

Drop the "x-" prefix per RFC 6648.
use try-with-resources statements