how to fix json decode error