Linked Questions

1 vote
0 answers
385 views

For some debugging and statistics need to recursive convert to JSON JavaScript-object "window.navigator" and send it to server. But have problem with it. For example i use JSON-plugin for jquery: ...
Woman Tochka's user avatar
907 votes
32 answers
965k views

I have a big object I want to convert to JSON and send. However it has circular structure, so if I try to use JSON.stringify() I'll get: TypeError: Converting circular structure to JSON or ...
Harry's user avatar
  • 55.4k
603 votes
8 answers
470k views

This seems like a solved problem but I am unable to find a solution for it. Basically, I read a JSON file, change a key, and write back the new JSON to the same file. All works, but I loose the JSON ...
Rajat's user avatar
  • 34.3k
90 votes
11 answers
189k views

I have many JavaScript objects in my application, something like: function Person(age) { this.age = age; this.isOld = function (){ return this.age > 60; } } // before serialize,...
Topera's user avatar
  • 12.4k
97 votes
7 answers
127k views

I've got a JavaScript object definition which contains a circular reference: it has a property that references the parent object. It also has functions that I don't want to be passed through to the ...
user1012500's user avatar
  • 1,667
9 votes
3 answers
11k views

I'm trying to pass an object with circular references from node.js server to client-side javascript. Server (node.js): var object = { circular: object } //.... app.get('/', function(req, res){ ...
laggingreflex's user avatar
0 votes
2 answers
17k views

I want to Encode EXTjs Class to Json, But, I can't.. I use JSON.stringify, but that gives Exception with Type error. How can I do that? Thanks and Here my Code. Ext.define('Text',{ extend : '...
LostCode's user avatar
  • 533
3 votes
2 answers
13k views

var Products = [ { id: 0, product: 'Sour Apple', price: 10, count: 1, product_thumb: 'resources/css/apple.png' }, { id: 1, product: '30 dsfdf', price: 20, count: 1, product_thumb: 'resources/...
Ali's user avatar
  • 103
1 vote
2 answers
6k views

Can anyone guide me how I do this in Javascript? Create an object with two methods. It should stringify and parse JSON, ie it has a method of serializing an object structure, and another method for ...
Xtreme's user avatar
  • 1,601
3 votes
1 answer
7k views

I have a JSON object of format: obj { name: "abc" , entriesList : "list of entry obj" , propertiesList : "list of properties obj" }; where entry is also another object entry { ...
user3505394's user avatar
0 votes
3 answers
3k views

I am using AJAX to send inputs from a webpage to a PHP file to then be entered into a database. Here is my JavaScript file: var pageLoaded = function () { var submitButton = document.getElementById("...
benharris's user avatar
  • 597
2 votes
2 answers
2k views

I am creating a long-polling chat application on nodeJS without using Socket.io and scaling it using clusters. I have to find a way to store all the long-polled HTTP requests and response objects in ...
Sanchit Mehta's user avatar
5 votes
2 answers
327 views

Much ink has been spilled on the subject of testing two objects for deep equality in JavaScript. None, however, seem to care about distinguishing the following two objects: var o1 = [{},{}]; var ...
Edward Z. Yang's user avatar
0 votes
0 answers
2k views

Here is my code, the error occurs under the function saveData. export default class App extends Component{ constructor(props){ super(props); this.state = { Task: '', }; } ...
smilada's user avatar
  • 17
3 votes
2 answers
575 views

How can i JSON.stringify the following data-structure? var Records = { 1357775376232: { pageX: 0, pageY: 0, scrollLeft: 0, scrollTop: 0, target: #document, ...
yckart's user avatar
  • 33.6k

15 30 50 per page