| 173 | | // summary: generate JSON structure from form values |
| | 173 | // summary: |
| | 174 | // Returns Object representing form values. |
| | 175 | // description: |
| | 176 | // Returns name/value hash for each form element. |
| | 177 | // If there are multiple elements w/the same name, value is an array, |
| | 178 | // unless they are radio buttons in which case value is a scalar since only |
| | 179 | // one can be checked at a time. |
| | 180 | // |
| | 181 | // If the name is a dot separated list (like a.b.c.d), creates a nested structure. |
| | 182 | // Only works on widget form elements. |
| | 183 | // example: |
| | 184 | // | { name: "John Smith", interests: ["sports", "movies"] } |