Top "Stringify" questions

A function that converts a JavaScript value to a JavaScript Object Notation (JSON) string.

JSON.stringify ignore some object members

Heres a simple example. function Person() { this.name = "Ted"; this.age = 5; } persons[0] = new Person(); persons[1] = new Person(); JSON.stringify(persons); …

javascript jquery json stringify
Serialization of RegExp

So, I was interested to find that JSON.stringify reduces a RegExp to an empty object-literal (fiddle): JSON.stringify(/^[0-9]+$/) // "{}" …

javascript json stringify
JSON.stringify() <input> values as numbers?

I am using JSON.stringify() on html <input>s to send through a websocket like so: JSON.stringify({ …

javascript json numbers stringify html-input
Converting a stringified json structure to PHP array

I'm saving a cookie with json data. Example of echo $_COOKIE['data'] [{\"date\":1355249777,\"title\":\"junior\"},{\"date\":1355249747,\"title\":\"christopher\"},{\"date\":1355249139,\"title\":\"…

php arrays json serialization stringify
Javascript: stringify object (including members of type function)

I'm looking for a solution to serialize (and unserialize) Javascript objects to a string across browsers, including members of the …

javascript json function serialization stringify
JSON stringify ES6 class property with getter/setter

I have a JavaScript ES6 class that has a property set with set and accessed with get functions. It is …

javascript ecmascript-6 stringify es6-class
Why does JSON.stringify return empty object notation "{}" for an object that seems to have properties?

The following example shows that JSON.stringify() returns the string "{}" for SpeechSynthesisVoice objects: var voiceObject = window.speechSynthesis.getVoices()[0]; JSON.stringify(…

javascript json text-to-speech stringify
JSON.stringify is ignoring object properties

See the jsfiddle example http://jsfiddle.net/frigon/H6ssq/ For some reason there are fields that JSON.stringify is …

javascript json kendo-ui stringify
Is there a way to remove quotes in a C macro?

Suppose I want to un-stringify the macro argument which should transform "text" to text. #define UN_STRINGIFY(x) /* some macro …

c++ c macros stringify
How to combine static_assert with sizeof and stringify?

Memory usage is quite critical in my application. Therefore I have specific asserts that check for the memory size at …

c++ visual-studio-2010 c++11 stringify static-assert