I think you can use JSON.stringify:
// after your each loop
JSON.stringify(values);
More Related Contents:
- How do I check whether a checkbox is checked in jQuery?
- Convert form data to JavaScript object with jQuery
- jQuery AJAX cross domain
- I keep getting “Uncaught SyntaxError: Unexpected token o”
- jQuery.parseJSON single quote vs double quote
- Ajax request returns 200 OK, but an error event is fired instead of success
- Chrome refuses to execute an AJAX script due to wrong MIME type
- Difference in JSON objects using Javascript/JQuery
- How to convert HTML to JSON using PHP?
- When to prefer JSON over XML?
- How can I use JSON data to populate the options of a select box?
- Loop through JSON object List
- pass function in json and execute
- Iterating through/Parsing JSON Object via JavaScript
- jQuery JSON looping through nested objects
- How to check in js that user has checked the checkbox in Google recaptcha?
- send json object from javascript to php
- jQuery AJAX Call to PHP Script with JSON Return
- console.log(result) prints [object Object]. How do I get result.name? [duplicate]
- how to read json result in jquery?
- Trying to load local JSON file to show data in a html page using JQuery
- Getting a diff of two json-objects
- Execute function after Ajax call is complete
- How to get the JSON with duplicate keys completely in javascript
- Uncaught TypeError: data.push is not a function
- How to compare two JSON have the same properties without order?
- how to convert xml to json using jquery
- JSON to string variable dump
- Using JSONP to get JSON data from another server
- Getting max value(s) in JSON array