make JSON relative