---
title: "javascript-json字符串数组转json数组对象"
author: "liumayulingyan"
date: "2014-06-18T16:43:47Z"
tags: []
categories: ["行业应用"]
slug: "javascript-json-json"
draft: false
lastmod: "2014-06-18T16:43:47Z"
id: 2082241
url: "https://liumayulingyan.iteye.com/blog/2082241"
---

后台的数据为

\[{"userId":"1","userName":"系统管理员"},{"userId":"2","userName":"Helen"},{"userId":"3","userName":"sarah\_psy"}]

 

            var recivers='后台的数据';//注意单引号，与后台不同

            recivers=jQuery.parseJSON(recivers);//后台数据要全部用双引号，JSON的标准格式必须使用双引号