fixed json read