I joined this group yesterday because I was having a problem with JSON. While my membership was getting approved, I came up with a solution, but I will post...
Well I'm not sure what's going on on your end, but I use JSON strings being received via an XMLHTTPReq process all the time and have never had to "Esc" the...
I updated the parseJSON method. I removed the string deletion phase which was a added as a workarond for IE's exponential regexp performance. We found that IE...
Today, I thought of an XML representation for JSON and I came up with something like; //Sample JSONML xml file <?xml version="1.0" encoding="UTF-8"?> <Object...
... From: Mert Sakarya <mertsakarya@...> Date: Oct 11, 2006 3:34 PM Subject: [json] A heavy-weight alternative to JSON : JSONML (a standard for fun) ...
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 ...
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...
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...
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...
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...
... 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()); ...
... As another poster mentioned, using hasOwnProperty(), is the way to make the intended behavior work. My understanding is that hasOwnProperty() isn't widely...
Tom Metro
tmetro+json@...
Oct 14, 2006 7:14 pm
544
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...
... It's not just exceptionally bad design, it's chronically inconsiderate programming. Nobody could use that code inside portlets, because they'd risk ...
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...
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. ...
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...
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...
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...
... 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 =...
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...
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...
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...
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...
... 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...
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...
... 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...