www.webdeveloper.com
Results 1 to 2 of 2

Thread: Objects in array -> search

Hybrid View

  1. #1
    Join Date
    Oct 2013
    Posts
    4

    Objects in array -> search

    Hi,
    I have an object/array populated by json data like this:
    [{name="John", gender="male", country="US"},{name="Bill", gender="male", country="GB"},{name="Steve", gender="male", country="SE"}]

    Question 1: is this an array or an object?
    Question 2: how can i find out the country= of name="Bill"?
    Obs! this array/object is large over 4000 indexes, so the method have to be fast

  2. #2
    Join Date
    Oct 2013
    Posts
    4
    Solved!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles