Re: [nodejs] How to access nested key/value pair ?

22 views
Skip to first unread message
Message has been deleted

Aria Stewart

unread,
Mar 4, 2015, 11:32:23 AM3/4/15
to nod...@googlegroups.com

On Mar 4, 2015, at 10:47 AM, Masoom Tulsiani <masoom....@gmail.com> wrote:

I have the following hash structure with nested key/value pairs. 

How can I access a particular key and value pair. For Instance,I would like to access  FIELDS -> UNAME(key)
and FIELDS -> STRING (value) of the message with OBJ_TYPE: FEED 


var hash =

{

{ OBJ_TYPE: 'RESULT',    


Not sure what structure you're using here: you can't have an object in an object without keys. Do you mean an array like so:

var hash = [
   { OBJ_TYPE: 'RESULT

?

Aria
Reply all
Reply to author
Forward
0 new messages