Abel Sanchez
Abel Sanchez

Reputation: 13

Accessing an Object in an Object

I have an object that saves like this taskTime{"date":"2012-11-19","freq":"taskOnce","time":"05:22"} Is there a way to access these inner objects? I have tried this result.attributes.taskTime.freq With no luck any ideas?

Upvotes: 1

Views: 172

Answers (2)

bklimt
bklimt

Reputation: 1842

result.get("taskTime").freq

That's just a guess, though. There's not enough info. Chrome's developer tools are your friends.

Upvotes: 0

JPR
JPR

Reputation: 869

Wouldn't it just be:

taskTime.freq

Upvotes: 1

Related Questions