I am trying to re-implement a page using JSON instead of some 2-dimensional arrays.
What I am hoping to accomplish is get an array of objects. The objects would look like this:
{ // Restaurant
  "location" : "123 Road Dr",
  "city_state" : "MyCity ST",
  "phone" : "555-555-5555",
  "distance" : "0"
}
I want to create an array of these restaurant objects and populate the distance field with some logic, then sort the array based on the distance field.
Can I create an array of JSON objects or is there something else with JSON that accomplishes this goal?
Thanks very much for your help.



new Date()andnew Image()) could qualify as JSON. But you are definitely taking the better approach by using objects with named values.