Modified the way we get data from a Json object.