... From: Mert Sakarya <mertsakarya@...> Date: Oct 11, 2006 3:34 PM Subject: [json] A heavy-weight alternative to JSON : JSONML (a standard for fun) ...
535
Gaetano Giunta
gaetanogiunt...
Oct 12, 2006 7:41 am
in the spirit of not reinventing the weel every time, you might as well take the xml-rpc xml, strip off datetime, int and base64 and add null, and you're done ...
536
imran_aziz_ca
Oct 13, 2006 2:17 am
I made a dynamic json object at run time in a web page via JScript. Contructed in a js for loop. The I parse it. Now I'm posting it to another page via jQuery...
537
Mert Sakarya
mertsakarya
Oct 13, 2006 8:41 am
You are posting your data to a server-side page (asp in your example), so you need a JSON parser written for that technology. If your ASP pages are written...
538
Peter Michaux
petermichaux
Oct 13, 2006 8:35 pm
Hi, I am working on a new project and I can choose XML, JSON, straight JavaScript or a custom format for transmitting data between browser JavaScript and...
539
Peter Michaux
petermichaux
Oct 14, 2006 5:59 am
Hi, By extending the Object.prototype with the new property toJSONString I can no longer use for-in loops in my JavaScript. Has someone released a version of...
540
Martin J. Evans
martin.evans@...
Oct 14, 2006 7:44 am
... Peter, This is pretty much what we do and it works fine. The only problem we had initially was with numbers and Perl and the 2 different JSON ...
541
Philip Tellis
philiptellis
Oct 14, 2006 10:46 am
... this is a design flaw in Javascript. You need to check the hasOwnProperty() method when iterating in a for..in loop: for(k in obj) ...
542
Philip Tellis
philiptellis
Oct 14, 2006 10:54 am
... It is what I would do. To send it to the server, I'd pass it as a POST parameter: var content = "json=" + encodeURIComponent(myObject.toJSONString()); ...
543
Tom Metro
tmetro+json@...
Oct 14, 2006 7:14 pm
... As another poster mentioned, using hasOwnProperty(), is the way to make the intended behavior work. My understanding is that hasOwnProperty() isn't widely...
544
Scott Chapman
chappie_mischko
Oct 14, 2006 7:54 pm
It's easy to modify json.js so it doesn't extend Object.prototype. That was a bad design in my opinion. The version I use is attached. Scott ... [Non-text...
545
Martin Cooper
mfncooper
Oct 14, 2006 9:53 pm
... It's not just exceptionally bad design, it's chronically inconsiderate programming. Nobody could use that code inside portlets, because they'd risk ...
546
Pradhap Nirmal Natara...
pradhapnirmal
Oct 16, 2006 5:28 pm
Hi All, I am wondering if there is anything called as JSON Schema and a validator to validate my JSON data. I use a lot of nested JSON data and it takes more...
547
Cheenu
cheenu321
Oct 16, 2006 6:36 pm
Last week somebody had posted this http://tech.groups.yahoo.com/group/json/message/533 You can also use the JSON Api's for various languages as validators. ...
548
Pradhap Nirmal Natara...
pradhapnirmal
Oct 17, 2006 3:48 am
Thanks for the reply Cheenu, But I am looking for a simple validator. Say I write a schema, pass the json data and the schema to a validator written in any...
549
krish777
Oct 22, 2006 7:42 pm
Hi, I am new to JSON an I am learning JSON. I have a question for the group. I have a button and onclick of the button, I am calling a servlet and I want to...
550
krish777
Oct 22, 2006 7:42 pm
Hi, I am new to JSON an I am learning JSON. I have a question for the group. I have a button and onclick of the button, I am calling a servlet and I want to...
551
Josh Sled
joshsled
Oct 22, 2006 8:27 pm
... JSON doesn't know how to serialize your Employee object into JSON. You'll want to do something like: List emps = new ArrayList(); { JSONObject jsonEmp =...
552
krishnappan
krish777
Oct 23, 2006 12:51 am
Thanks Josh, it works!!!!!. ... JSON doesn't know how to serialize your Employee object into JSON. You'll want to do something like: List emps = new...
553
Preston Bannister
pbannister
Oct 26, 2006 3:17 am
If I remember right, Microsoft has a means of sharing objects between VBscript and Jscript in IE (and any other Active Scripting language), so in theory you...
554
Douglas Crockford
douglascrock...
Oct 29, 2006 11:11 pm
I revised json.js to clarify specification issues in the proposed ECMAScript 4th Edition standard. It now encodes dates as formal ISO strings. By adding a...
555
Peter Michaux
petermichaux
Oct 29, 2006 11:44 pm
Hi Douglas, At first glance it looks like it was much easier to modify the old file so that it didn't affect any built in prototypes and brake for-in loops. Do...
556
Joshua Raphael Fuentes
joshuarpf
Oct 30, 2006 12:47 am
... From: Douglas Crockford <douglas@...> To: json@yahoogroups.com Sent: Monday, October 30, 2006 7:08:33 AM Subject: [json] json.js I revised...
557
Martin Cooper
mfncooper
Oct 30, 2006 5:39 pm
... I agree with Peter. Sure, these methods might become part of the language next year, but there should be a way for people to use the code today without...
558
hweingram
Oct 31, 2006 9:20 am
Hi folks. I am new to the group. I am interested in defining the expected structure of JSON objects in a way that can be programmatically introspected. Such...
559
Douglas Crockford
douglascrock...
Oct 31, 2006 4:17 pm
... Early on I designed a schema notation for JSON in JSON. But on reflection, it didn't appear to do anything that an application shouldn't already be doing...
560
Douglas Crockford
douglascrock...
Oct 31, 2006 4:18 pm
I have written a proposal for an HTML module which uses JSON to solve the Mashup Security Problem. See http://json.org/module.html...
561
Mark Miller
capsecure
Oct 31, 2006 5:10 pm
... On that page: "...without the capability leakage that would occur with the exchange of JavaScript objects". Also "The capability of a module...". ...
562
dawjde
Oct 31, 2006 9:52 pm
http://cheeseshop.python.org/pypi/Aioxml - LANGUAGE EXAMPLE ================== # This is an example (object attribute = value attribute2 = value2 (object ...
563
Douglas Crockford
douglascrock...
Nov 1, 2006 12:34 am
... In the sense of a reference that gives access to an object....