Fix a json_decode crash when depth==0