json read validation fixes