Loading ...
Sorry, an error occurred while loading the content.
Advanced Search
Author
Subject
Message
Special notice only

Advanced Search
  • you can also use a prototype reviver ( i.e. https://gist.github.com/WebReflection/87e41c09691edf9432da ) and use the somehow virtually reserved ( since it scares the hell out of everyone if seen in JSON ) "__proto__" as actual property that points to a known constructor in the global context. ```js // from some service ... as JSON result var jsonString = '{"__proto__":"mylib.ui...
    Andrea Giammarchi Dec 3, 2014
  • ...stringify supports that, isnt's this json2.js goal to bring this object in those browsers that do not support it? Best Regards, Andrea Giammarchi [Non-text portions of this message have been removed]
    Andrea Giammarchi Apr 4, 2011
  • ...sensible to arguments length. Any comment/improvement will be appreciated, any update on github more than welcome. Best Regards, Andrea Giammarchi P.S. "unknown" is IE specific [Non-text portions of this message have been removed]
    Andrea Giammarchi Apr 3, 2011
  • Fetching Sponsored Content...
  • Any kind of thought/suggestion is welcome: http://webreflection.blogspot.com/2010/04/json-sleep-wakeup-serialize-and.html In few words, a way to better control serialization/de-serialization processes using the JSON protocol we all know. Small code, zero evaluation, namespace compatible (e.g. serializer:"my.lib.namespace") and compatible with modules. Regards [Non-text portions of...
    Andrea Giammarchi Apr 25, 2010
  • Weird environment, I would trust more native implementations or json2.js itself nullifying the method. Array.prototype.toJSON = null; Could it be an acceptable work around? On Mon, Feb 15, 2010 at 8:09 AM, soren.hilmer wrote: > > > Hi > > Just ran into this issue with json2 (http://www.json.org/json2.js). > > In the environment where I'm developing the situation is that plain...
    Andrea Giammarchi Feb 15, 2010
  • ...this technique Do you see what I mean? Regards On Sun, Dec 13, 2009 at 6:38 PM, Douglas Crockford wrote: > > > --- In json@^$1 , Andrea Giammarchi > wrote: > > > > Douglas, I think this move was brilliant, but as I have twitted, I > > wonder how many devs wrote a: > > > > window...
    Andrea Giammarchi Dec 13, 2009
  • Just to underline another thing: On Sun, Dec 13, 2009 at 6:38 PM, Douglas Crockford wrote: > > The point I was making was that if you care about reliability, security, > and performance > > reliability ... they are including the de facto official JSON library for JavaScript security ... they trust your implementation and they trust the fact you keep updating it performances...
    Andrea Giammarchi Dec 13, 2009
  • Douglas, I think this move was brilliant, but as I have twitted, I wonder how many devs wrote a: window.alert = function(){}; before including external resources, rather than get the real/original message (also because alert is something only RyanAir and few others could still use "in 2010") In any case, specially for a problematic subject as JSON evaluation is, I guess you should...
    Andrea Giammarchi Dec 13, 2009
  • Douglas, can I put my name in your Business Card? :D Btw, specially the gray scale one looks really good, congrats. Regards P.S. do you sell outside USA as well? I did not check everything, cheers On Thu, Oct 1, 2009 at 1:37 PM, Douglas Crockford wrote: > > > There have been many requests for JSON t-shirts. > So I have made a couple of designs available at > http://www.zazzle.com...
    Andrea Giammarchi Oct 1, 2009
  • just use a non valid attribute name as JSON property, so you won't have ambiguity in the parser. value2 will be {"attribute":{"a2":"v2"},"#text":"value2"} as example ... while JSONML uses this kind of schema ["nodeName",{"a2":"v2"},"text or nested nodes"] so that this: value2 will be this ["attributes",{},["attribute",{"a2":"v2"},"value2"]] Regards On Mon, Sep 14, 2009 at 10:23 PM...
    Andrea Giammarchi Sep 14, 2009