Use of reserved words in JSON structure

2009-08-10 Thread Jeff Chimene
Hi, I'm trying to implement an API that uses two JavaScript reserved words in a JSON structure: public and private Is there a clever JS technique to work-around this use of the reserved word public? Consider the following object {addresses : {public: [],private:[]} The following JSNI code

Re: Use of reserved words in JSON structure

2009-08-10 Thread Jeff Chimene
On 08/10/2009 01:20 PM, Jeff Chimene wrote: Hi, I'm trying to implement an API that uses two JavaScript reserved words in a JSON structure: public and private Is there a clever JS technique to work-around this use of the reserved word public? Consider the following object