Link to home
Start Free TrialLog in
Avatar of stargateatlantis
stargateatlantis

asked on

jquery search in JSON file

I was wondering using jquery i need a example of how to search thru a JSON file.  So lets say i look for Item1 it will return the fields bar and items.
{
	"items": [

	{
	  "foo": "Item0",
	  "bar": "HEllo",
	  "items": {"www.google.com" : "lgo_google.gif"},
	},
	
	{
	  "foo": "Item1",
	  "bar": "Good Bye",
      "items": {"www.yahoo.com" : "lgo_yahoo.gif"},
	},
	
	{
	  "foo": "Item2",
	  "bar": "What up",
	  "items": {"www.msn.com" : "lgo_msn.gif"},
	}

			
	]
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You're welcome! Thanks for the points!