Search the web
Sign In
New User? Sign Up
json · JSON JavaScript Object Notation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 600 - 629 of 1409   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
600
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...
Peter Michaux
petermichaux
Offline Send Email
Dec 3, 2006
10:02 pm
601
... 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...
Martin Cooper
mfncooper
Online Now Send Email
Dec 3, 2006
10:27 pm
602
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...
Peter Michaux
petermichaux
Offline Send Email
Dec 3, 2006
10:42 pm
603
Milliseconds don't seem that critical, but what about generating UTC and appending a "Z"? i.e. return '"' + x.getFullYearUTC() + '-' + f(x.getMonthUTC() + 1)...
Jon Meyer
meyer_jon
Offline Send Email
Dec 4, 2006
11:11 am
604
http://martin.jambon.free.fr/json-wheel.html...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 4, 2006
3:43 pm
605
... Keep in mind that the Javascript date class/objects have methods for setting and getting time in milliseconds (and 'new Date()' constructors can also ...
Kevin Prichard
kevin3prichard
Offline Send Email
Dec 4, 2006
4:24 pm
606
... This is what I was thinking. Milliseconds could be important at times and seems unfortunate to throw them out if there is no reason. Peter...
Peter Michaux
petermichaux
Offline Send Email
Dec 4, 2006
5:59 pm
607
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...
Peter Michaux
petermichaux
Offline Send Email
Dec 5, 2006
1:34 am
608
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...
Gaetano Giunta
gaetanogiunt...
Offline Send Email
Dec 5, 2006
8:38 am
609
... A well written application will have expectations for the types of its value. So you could wrap such uses with your dataValue function. myDate =...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 5, 2006
2:01 pm
610
You can use my JavaScript utility object to return a data, time, or timestamp -- // VC-DATE /* PROJECT: JDM (Java Dynamic Machine) PROGRAMMER: G. Patnude...
Greg Patnude
gregpatnude
Offline Send Email
Dec 5, 2006
3:53 pm
611
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...
Peter Michaux
petermichaux
Offline Send Email
Dec 5, 2006
5:49 pm
612
... Cool. Is there a draft we can read? -- Text by me above is hereby placed in the public domain Cheers, --MarkM...
Mark Miller
capsecure
Offline Send Email
Dec 5, 2006
5:50 pm
613
BAD: eval("dx = this." + branch + "(str, tests[t][1])"); BETTER: dx = this[branch](str, tests[t][1]);...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 5, 2006
6:52 pm
614
... 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...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 5, 2006
7:03 pm
615
... http://developer.mozilla.org/es4/proposals/json_encoding_and_decoding.html...
Douglas Crockford
douglascrock...
Offline Send Email
Dec 5, 2006
7:06 pm
616
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...
Peter Michaux
petermichaux
Offline Send Email
Dec 5, 2006
10:04 pm
617
I have updated json.org/json.js to support the optional hook function, anticipating ECMAScript 4th edition....
Douglas Crockford
douglascrock...
Offline Send Email
Dec 6, 2006
7:19 pm
618
I have initialised a json string as a js variable and this simple test is working: a href="##" ...
Mark Ireland
akaidr4vr
Offline Send Email
Dec 7, 2006
11:11 pm
619
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...
Jesse Skinner
jessephrenic
Offline Send Email
Dec 8, 2006
1:40 am
620
Is there any javascript code for finding a json variable by its key? say jsonStuff.DATA.UNIQUEID[uniqueid] ... ...
Mark Ireland
akaidr4vr
Offline Send Email
Dec 9, 2006
11:36 pm
621
... 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...
Martin Cooper
mfncooper
Online Now Send Email
Dec 9, 2006
11:52 pm
622
Thanks. I was hoping there was a js function library where you just pass the unique id and the row is returned. Is there one? ... ...
Mark Ireland
akaidr4vr
Offline Send Email
Dec 10, 2006
10:06 pm
623
... 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...
Martin Cooper
mfncooper
Online Now Send Email
Dec 10, 2006
10:19 pm
624
Here is one I prepared earlier: ...
Mark Ireland
akaidr4vr
Offline Send Email
Dec 10, 2006
10:54 pm
625
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":...
Jesse Skinner
jessephrenic
Offline Send Email
Dec 10, 2006
11:07 pm
626
... 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 ...
Martin Cooper
mfncooper
Online Now Send Email
Dec 10, 2006
11:23 pm
627
OK Now I have this: var myStuff = { ...
Mark Ireland
akaidr4vr
Offline Send Email
Dec 11, 2006
3:17 am
628
*Identifiers* are names for constants, variables, functions, loop labels, objects and classes. The first character must be an ASCII letter, underscore or...
Matthew Morley
mpcmtechnolo...
Offline Send Email
Dec 11, 2006
11:43 am
629
Thanks, that got it working. Now I am wondering if there is some alternative to repeating the column names in every object. ... ...
Mark Ireland
akaidr4vr
Offline Send Email
Dec 17, 2006
10:20 pm
Messages 600 - 629 of 1409   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help