D
Dominic
Hi there,
I'm looking to transfer some data between functions and I thought I'd use
json such that the notation will be like this:
var myJSONThing = {12:34, 345:32, 987:345...}.
function myFunction(myJSONThing){
....
}
Now I looked and the name/value pair should, according to the documentation
I could find, have the name enclosed with "s yet the script I'm writing
seems to be working (at least in Firefox). Is it totally necessary to have
the quotation marks or just good practice? Also, would it have an effect on
iterating through the object? I guess the answer to the first of my
questions is the important thing as I don't want it to break in the future.
Cheers,
Dom
I'm looking to transfer some data between functions and I thought I'd use
json such that the notation will be like this:
var myJSONThing = {12:34, 345:32, 987:345...}.
function myFunction(myJSONThing){
....
}
Now I looked and the name/value pair should, according to the documentation
I could find, have the name enclosed with "s yet the script I'm writing
seems to be working (at least in Firefox). Is it totally necessary to have
the quotation marks or just good practice? Also, would it have an effect on
iterating through the object? I guess the answer to the first of my
questions is the important thing as I don't want it to break in the future.
Cheers,
Dom