Frank,

The proper form would be:

{
   ads: true,
   content_slug: "just-some-title"
}

The JSON format indicated a name/value pair, and the name is treated
as a property/method of the base class.  The quoting would not work
effectively.  To expand the concept:

var baseclass = {
   ads: true,
   content_slug: "just-some-title"
};

alert(baseclass.context_slug);

This pop's up an alert box with the message "just-some-title"

If you want to use a quoted identifier to generate the same object,
you would do the following:

var baseclass = {};

baseclass["ads"] = true;
baseclass["context_slug"] = "just-some-title"


Jocko


Frank Peterson wrote:
> [
> {
> "ads": true,
> "content_slug": "just-some-title"
> }
> ]

Reply via email to