The proposal is to extend "test" operation to allow testing for value type and for its presence. See the details here: https://github.com/epoberezkin/extended-json-patch#motivation