@@ -105,52 +105,51 @@ define(["dojo/_base/kernel", "dojo/_base/lang", "dojox", "dojo/_base/array"], fu
105
105
// the starting object, various operators can be successively applied, each operating
106
106
// on the result of the last operation.
107
107
//
108
- // Supported Operators:
108
+ // Supported Operators
109
109
// --------------------
110
- // * .property - This will return the provided property of the object, behaving exactly
110
+ //
111
+ // - .property - This will return the provided property of the object, behaving exactly
111
112
// like JavaScript.
112
- // * [expression] - This returns the property name/index defined by the evaluation of
113
+ // - [expression] - This returns the property name/index defined by the evaluation of
113
114
// the provided expression, behaving exactly like JavaScript.
114
- // * [?expression] - This will perform a filter operation on an array, returning all the
115
+ // - [?expression] - This will perform a filter operation on an array, returning all the
115
116
// items in an array that match the provided expression. This operator does not
116
117
// need to be in brackets, you can simply use ?expression, but since it does not
117
118
// have any containment, no operators can be used afterwards when used
118
119
// without brackets.
119
- // * [^?expression] - This will perform a distinct filter operation on an array. This behaves
120
+ // - [^?expression] - This will perform a distinct filter operation on an array. This behaves
120
121
// as [?expression] except that it will remove any duplicate values/objects from the
121
122
// result set.
122
- // * [/expression], [\expression], [/expression, /expression] - This performs a sort
123
+ // - [/expression], [\expression], [/expression, /expression] - This performs a sort
123
124
// operation on an array, with sort based on the provide expression. Multiple comma delimited sort
124
125
// expressions can be provided for multiple sort orders (first being highest priority). /
125
126
// indicates ascending order and \ indicates descending order
126
- // * [=expression] - This performs a map operation on an array, creating a new array
127
+ // - [=expression] - This performs a map operation on an array, creating a new array
127
128
// with each item being the evaluation of the expression for each item in the source array.
128
- // * [start:end:step] - This performs an array slice/range operation, returning the elements
129
+ // - [start:end:step] - This performs an array slice/range operation, returning the elements
129
130
// from the optional start index to the optional end index, stepping by the optional step number.
130
- // * [expr,expr] - This a union operator, returning an array of all the property/index values from
131
+ // - [expr,expr] - This a union operator, returning an array of all the property/index values from
131
132
// the evaluation of the comma delimited expressions.
132
- // * .* or [*] - This returns the values of all the properties of the current object.
133
- // * $ - This is the root object, If a JSONQuery expression does not being with a $,
133
+ // - .* or [*] - This returns the values of all the properties of the current object.
134
+ // - $ - This is the root object, If a JSONQuery expression does not being with a $,
134
135
// it will be auto-inserted at the beginning.
135
- // * @ - This is the current object in filter, sort, and map expressions. This is generally
136
+ // - @ - This is the current object in filter, sort, and map expressions. This is generally
136
137
// not necessary, names are auto-converted to property references of the current object
137
138
// in expressions.
138
- // * ..property - Performs a recursive search for the given property name, returning
139
+ // - ..property - Performs a recursive search for the given property name, returning
139
140
// an array of all values with such a property name in the current object and any subobjects
140
- // * expr = expr - Performs a comparison (like JS's ==). When comparing to
141
+ // - expr = expr - Performs a comparison (like JS's ==). When comparing to
141
142
// a string, the comparison string may contain wildcards * (matches any number of
142
143
// characters) and ? (matches any single character).
143
- // * expr ~ expr - Performs a string comparison with case insensitivity.
144
- // * ..[?expression] - This will perform a deep search filter operation on all the objects and
144
+ // - expr ~ expr - Performs a string comparison with case insensitivity.
145
+ // - ..[?expression] - This will perform a deep search filter operation on all the objects and
145
146
// subobjects of the current data. Rather than only searching an array, this will search
146
147
// property values, arrays, and their children.
147
- // * $1,$2,$3, etc. - These are references to extra parameters passed to the query
148
+ // - $1,$2,$3, etc. - These are references to extra parameters passed to the query
148
149
// function or the evaluator function.
149
- // * +, -, /, *, &, |, %, (, ), <, >, <=, >=, != - These operators behave just as they do
150
+ // - +, -, /, *, &, |, %, (, ), <, >, <=, >=, != - These operators behave just as they do
150
151
// in JavaScript.
151
152
//
152
- //
153
- //
154
153
// | dojox.json.query(queryString,object)
155
154
// and
156
155
// | dojox.json.query(queryString)(object)
0 commit comments