Jul 27, 2017 · 1 min read
Hey thanks so much for your post. really helps. Just a quick question, If the returned json object has an array in it for example:
{“type”:”postListResponse”,”status”:{“errorCode”:200,”serverTimestamp”:1501163757697},”posts”:[{“clubId”:131…
I am able to pull just the post object by doing: data.body.posts[0]
within the subscribe function and it successfully returns: [{“clubId”:131…
however if i wanna access the properties inside the “post “object i tried data.body.posts[0].clubId in the subscribe but it doesn't seem to return “ 131” it just doesn't compile.
any idea how to go about this?
Best regards,
Avi T.
