solving bugs to read json