JsonPointer: modify the code some more

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>