added proper json path parsing