Fixed performance issue with getValueByJsonPath.

Earlier, the input object is cloned at the beginning that's taking lot
of time with huge objects.
Instead, return the cloned object/array found at the given json path.
Such that if user modifies the return value of getValueByJsonPath,it won't affect original
object