fixed json decode logic