Is there any javascript code for finding a json variable by its key? say jsonStuff.DATA.UNIQUEID[uniqueid] ... ...
621
Martin Cooper
mfncooper
Dec 9, 2006 11:52 pm
... 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...
622
Mark Ireland
akaidr4vr
Dec 10, 2006 10:06 pm
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? ... ...
623
Martin Cooper
mfncooper
Dec 10, 2006 10:19 pm
... 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...
624
Mark Ireland
akaidr4vr
Dec 10, 2006 10:54 pm
Here is one I prepared earlier: ...
625
Jesse Skinner
jessephrenic
Dec 10, 2006 11:07 pm
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":...
626
Martin Cooper
mfncooper
Dec 10, 2006 11:23 pm
... 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 ...
627
Mark Ireland
akaidr4vr
Dec 11, 2006 3:17 am
OK Now I have this: var myStuff = { ...
628
Matthew Morley
mpcmtechnolo...
Dec 11, 2006 11:43 am
*Identifiers* are names for constants, variables, functions, loop labels, objects and classes. The first character must be an ASCII letter, underscore or...
629
Mark Ireland
akaidr4vr
Dec 17, 2006 10:20 pm
Thanks, that got it working. Now I am wondering if there is some alternative to repeating the column names in every object. ... ...
630
Matthew Morley
mpcmtechnolo...
Dec 18, 2006 3:12 am
Why not return an object w/ 2 properties. One being an array containing field names, the other being an array of arrays, representing data records (that match...
631
Mark Ireland
akaidr4vr
Dec 18, 2006 4:01 am
How would you use dot notation in each case? ... _________________________________________________________________ Advertisement: Fresh jobs daily. Stop...
632
Matthew Morley
mpcmtechnolo...
Dec 18, 2006 12:04 pm
You would have to do something more than a simple translation. If your end goal was to directly reference fields values by name, you would need to do an end...
633
Douglas Crockford
douglascrock...
Dec 19, 2006 4:47 am
There is a new implementation for Python: http://cheeseshop.python.org/pypi/python-cjson...
634
Mark Ireland
akaidr4vr
Dec 19, 2006 5:25 am
Hopefully I can clear all this up. First I wanted to save on whitespace by avoiding var myArray = new Array; cfloop var myArray[myIndex] = new Array; ...
635
Kazuho Oku
kazuho_oku
Dec 19, 2006 5:28 am
Subject: JSON Compatibility Issues Hi, While I was debugging my web application, I found following compatibility issues regarding JSON and major web browsers. ...
636
Matthew Morley
mpcmtechnolo...
Dec 19, 2006 12:37 pm
It would depend on what you mean by page and how much data you are dealing with. 3-10kb range might not make a huge difference on download, 20-300kb might. Run...
637
Atif Aziz
azizatif
Dec 19, 2006 2:02 pm
I think I know what you're looking for here. Suppose the following table: var table = { "columns" : [ "FirstName", "LastName" ], "rows" : [ [ "Mickey", "Mouse"...
638
canixs
Dec 19, 2006 3:59 pm
Hello all, This is my first post here. I am currently working on a dynamic scripts version of my website. I have to say this is my first javascripts using json...
639
Mark Ireland
akaidr4vr
Dec 21, 2006 12:17 am
This is the right general idea but . . ... I am thinking: var myJSObject = ...
640
shalini israni
i_dint_get_t...
Jan 1, 2007 10:25 am
I faced a similar problem....but i am using Java... http://www.json.org/javadoc/org/json/XML.html presents a class which is a part of a downloadable API which...
641
Atif Aziz
azizatif
Jan 1, 2007 11:50 pm
The human-readable aspect of JSON is all well and good in theory, but turns out to be a mute point in practice. Most JSON producers in the current web...
642
Josh Sled
joshsled
Jan 2, 2007 5:38 pm
... I did a similar thing; the attached HTML page is a stand-alone (html + javascript) page which contains a text area into which you can paste json; on submit...
643
Josh Sled
joshsled
Jan 2, 2007 5:57 pm
... [...] ... Pfft. Thanks, Yahoo Groups... http://asynchronous.org/2006/json.html.tar.gz is what I'd attached. It's archived and compressed in an attempt to...
644
shiju pc
shijupc123
Jan 5, 2007 9:11 am
Hi Dear Group Members of Json, First of all, I am sending the warm regards to JSON Group members of the New year. And I am a newcomer in JSON groups. And dear...
645
Peter Michaux
petermichaux
Jan 7, 2007 2:22 am
... Douglas, is there a particular reason for not including milliseconds in json.js? Thanks, Peter -- Fork JavaScript: http://forkjavascript.org...
646
Douglas Crockford
douglascrock...
Jan 7, 2007 5:26 am
... in json.js? You have the source, you can put them in any time you want to. But first, let me ask you a question: How confident that your system's clock has...
647
Peter Michaux
petermichaux
Jan 7, 2007 5:52 am
... I'm sorry for bothering you, sir. Thank you for your answer. I'll go back to my corner now. Peter...
648
shalini israni
i_dint_get_t...
Jan 8, 2007 3:51 am
Hi, Happy new year to u too... Could u explain what ur problem in finer detail? Until then u could look at http://www.json.org/ Regards ... -- Shalini ...
649
shalini israni
i_dint_get_t...
Jan 9, 2007 10:28 am
hmmnnn...I39;m sorry i'm not aware of JSON files... i'll let u know if i hit upon anything... ... -- Shalini [Non-text portions of this message have been...