like #getVal(), but also check that there is nothing remaining in the given stream after closing bracket. Throws ParseException otherwise.
(JSONParser parser)
| 63 | * after closing bracket. Throws {@link ParseException} otherwise. |
| 64 | */ |
| 65 | public static Object getValStrict(JSONParser parser) throws IOException { |
| 66 | final Object val = getVal(parser); |
| 67 | checkEOF(parser); |
| 68 | return val; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * like {@link #getVal()}, but also check that there is nothing remaining in the given stream |