Using jQuery:
var str="{"id":1,"name":"Test1"},{"id":2,"name":"Test2"}";
var jsonObj = $.parseJSON('[' + str + ']');
jsonObj
is your JSON object.
More Related Contents:
- Filter JSON by key value with JavaScript
- Convert JSON to array in Javascript
- Converting JavaScript object with numeric keys into array
- Convert array to JSON
- Is the order of elements in a JSON list preserved?
- Parsing JSON objects for HTML table
- How to compare arrays in JavaScript?
- Sum JavaScript object propertyA values with the same object propertyB in an array of objects
- Array.push() if does not exist?
- How might I extract the property values of a JavaScript object into an array?
- How do I sort an array of objects based on the ordering of another array?
- How do you put an image file in a json object?
- Convert javascript object or array to json for ajax data
- Get unique results from JSON array using jQuery
- Javascript group objects by property [closed]
- Converting JSON object to CSV format in JavaScript
- Convert string array to array in javascript
- traversing through JSON string to inner levels using recursive function
- console.log(result) prints [object Object]. How do I get result.name? [duplicate]
- Combine json arrays by key, javascript
- Convert js Array() to JSon object for use with JQuery .ajax
- Construct hierarchy tree from flat list with parent field? [duplicate]
- Issue with JSON.stringify adding a extra \ and “” to my Json object
- Getting max value(s) in JSON array
- How to list array names in json [closed]
- Get a random item from a JavaScript array [duplicate]
- How to stringify inherited objects to JSON?
- Does Javascript slice method return a shallow copy?
- JSON schema : “allof” with “additionalProperties”
- Alternatives to JavaScript eval() for parsing JSON