Fix Invalid json bug finally