fix(json): adjust insertBefore method and indexOf docs

-- removes the index calculation in insertBefore
-- fixes the documentation of indexOf to be aligned with function

Related to: #CAM-2460