JSON Array
Steps to reproduce
- Open Firebug
- Enable and switch to the Net panel
-
Click the Send array request button
⇒ There should be a request to json.php?type=array
shown inside the request list
-
Expand the request to
json.php?type=array
⇒ There should be a JSON tab
-
Expand the JSON tab
⇒ The array items should be listed in numerical order (1
, 2
, 3
, …)
-
Click the Sort by key link
⇒ The order shouldn't change
Expected result
- The array items should be listed in numerical order
- Sorting by key should not change the order
JSON Object
Steps to reproduce
- Open Firebug
- Enable and switch to the Net panel
-
Click the Send object request button
⇒ There should be a request to json.php?type=object
shown inside the request list
-
Expand the request to
json.php?type=object
⇒ There should be a JSON tab
-
Expand the JSON tab
⇒ The object properties should be listed in the order they were defined (5
, 2
, 15
, …)
-
Click the Sort by key link
⇒ The object properties should be listed in alphabetical order (
1
, 10
, 11
, …)
Expected result
- The object properties should be listed in the order they were defined by default
- There should be an option to switch to an alphabetical order