JsonFragment: get rid of .fromFragment()

It was only used from JsonRef. Inline it there instead.

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