To parse it you need to use double quotes instead of single.
This should work:
services="["service1", "service2", "service3"]"
JSON.parse(services)
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]
- Convert JSON string to array of JSON objects in Javascript
- Converting JSON object to CSV format in JavaScript
- traversing through JSON string to inner levels using recursive function
- Returning JSON array from a Django view to a template
- 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
- Passing data from Django to D3
- Getting max value(s) in JSON array
- Django: passing JSON from view to template
- javascript slice without using built in method [closed]
- Serializing object that contains cyclic object value
- Getting a union of two arrays in JavaScript [duplicate]