Hi, I am trying the relatively new json.js code available on http://www.json.org/json.js A date object is converted to the following format 2006-12-03T13:56:21...
... Yep. It's defined by ISO 8601. There's a summary of that here: http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html I don't think it has a...
Hi Martin, ... Thanks for the link ... It looks like it does. From that link The standard has provisions for: (1) the omission of components representing...
Milliseconds don't seem that critical, but what about generating UTC and appending a "Z"? i.e. return '"' + x.getFullYearUTC() + '-' + f(x.getMonthUTC() + 1)...
... Keep in mind that the Javascript date class/objects have methods for setting and getting time in milliseconds (and 'new Date()' constructors can also ...
Hi, Is there a strategy for decoding dates that could or should be in json.js? It seems incomplete that it can encode dates but doesn't automatically decode...
afaik, jsonrpc uses a variant of ISO without millliseconds. also, for most databases, the standard date and time fields omit milliseconds (a timestamp value is...
... A well written application will have expectations for the types of its value. So you could wrap such uses with your dataValue function. myDate =...
You can use my JavaScript utility object to return a data, time, or timestamp -- // VC-DATE /* PROJECT: JDM (Java Dynamic Machine) PROGRAMMER: G. Patnude...
Hi Douglas, ... Any chance you will be adding this capability to the http://json.org/json.js file? ... This seems a little confusing. "toJSONString" generates...
... You are right, it would be bad to generate a string like "new Date". Instead, you would generate an object that would be recognized by your hook function...
Hi, ... I read the proposal and wonder if there is some loose wording for parseJSON. I doubt it but would like to double check. "The optional hook function...
Hi Mark, Perhaps instead of: for (var j in jsonStations.RECORDCOUNT) { you should try: for (var j=0;j < jsonStations.RECORDCOUNT;j++) { ? I'm not sure without...
... It's just a JavaScript object, so you can access pieces of it in the same way as you would with any other JavaScript object. There's no magic. say...
... What do you mean? There is no concept of "row" in JSON, or even unique IDs, for that matter, beyond the property names in an object. Any structure you are...
It sounds like you want to use a JavaScript object, with your uniqueID column as the key. What you'd do is somehow structure your JSON like so: { "uniqueID1":...
... Depends on how you define "standard", but no, it's not anything I would call a standard. I believe it's a format that comes from the CFJSON library, so ...
*Identifiers* are names for constants, variables, functions, loop labels, objects and classes. The first character must be an ASCII letter, underscore or...