How to convert a JSON array to a String

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JSON 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准