fix json response string fmt memory bug