[Proto-Scripty] Re: subtleties of control flow

2010-04-14 Thread T.J. Crowder
Hi, It would be useful if you said what the `json` variable references. You're treating whatever it is like an array, so I'll assume that here -- or at least, that it has a `length` property and properties with the names `0`, `1`, etc. So you're saying 1. It does show testing header==true at

Re: [Proto-Scripty] Re: subtleties of control flow

2010-04-14 Thread chrysanthe m
Hi TJ Sorry for insufficient detail The json object is returned from the server and is a JSONArray, composed of hetrogenous elements, but all of which have a server-side defined boolean header element. What I was hoping to do is put both types of elements into this one JSONArray and selectively

[Proto-Scripty] Re: subtleties of control flow

2010-04-14 Thread T.J. Crowder
Hi, The json object is returned from the server and is a JSONArray... You mean JSONArray as in the Java wrapper for JSON arrays from json.org? An array can't be the top-level object in a JSON dataset. Not that that's likely to be your problem, I'm just saying... Do you ever see more than one

Re: [Proto-Scripty] Re: subtleties of control flow

2010-04-14 Thread chrysanthe m
Hi TJ Yes, I am using json.org jars to serialize out a JSONArray that I created and populated with my hetrogenous object types server-side. No I only saw either header==true alert and I did make sure there was nothing hiding. I am going to keep pruning back code until I get something I can agree