I have a login page and it is connected to webservice for authentication. If the username and password is wrong we get the result string `{"status":"400"}`. I want to convert or format this json to a string like `login-failed` or something. How can I do this? Well, you'd put together a table of some sort relating status value to message.
以上就是How to convert a JSON array to a String的详细内容,更多请关注web前端其它相关文章!