Make json protocol relative