()
| 168 | } |
| 169 | |
| 170 | private JSONList list() { |
| 171 | assertChar('['); |
| 172 | whitespace(); |
| 173 | JSONList list = new JSONList(); |
| 174 | while (peek() != ']') { |
| 175 | list.add(object()); |
| 176 | whitespace(); |
| 177 | if (peek() == ',') { |
| 178 | pos++; |
| 179 | whitespace(); |
| 180 | } |
| 181 | } |
| 182 | pos++; |
| 183 | return list; |
| 184 | } |
| 185 | |
| 186 | private JSONMap map() { |
| 187 | assertChar('{'); |
no test coverage detected