JsonRef: introduce .isLegal()

A JSON Reference is legal if and only if its fragment part is a JSON Pointer.

Recall: no fragment is equal to an empty fragment.

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