Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Type | Name and description |
---|---|
int |
getMaxSizeForInMemory() Max size before Slurper starts to use windowing buffer parser. |
JsonParserType |
getType() Parser type. |
boolean |
isCheckDates() Determine if slurper will automatically parse strings it recognizes as dates. |
boolean |
isChop() Turns on buffer chopping for index overlay. |
boolean |
isLazyChop() Turns on buffer lazy chopping for index overlay. |
Object |
parse(Reader reader) Parse a JSON data structure from content from a reader |
Object |
parse(InputStream inputStream) Parse a JSON data structure from content from an inputStream |
Object |
parse(InputStream inputStream, String charset) Parse a JSON data structure from content from an inputStream |
Object |
parse(byte[] bytes, String charset) Parse a JSON data structure from content from a byte array. |
Object |
parse(byte[] bytes) Parse a JSON data structure from content from a byte array. |
Object |
parse(char[] chars) Parse a JSON data structure from content from a char array. |
Object |
parse(File file) Parse a JSON data structure from content within a given File. |
Object |
parse(File file, String charset) Parse a JSON data structure from content within a given File. |
Object |
parse(URL url) Parse a JSON data structure from content at a given URL. |
Object |
parse(URL url, Map params) Parse a JSON data structure from content at a given URL. |
Object |
parse(Map params, URL url) Parse a JSON data structure from content at a given URL. |
Object |
parse(URL url, String charset) Parse a JSON data structure from content at a given URL. |
Object |
parse(URL url, Map params, String charset) Parse a JSON data structure from content at a given URL. |
Object |
parse(Map params, URL url, String charset) Parse a JSON data structure from content at a given URL. |
Object |
parseText(String text) Parse a text representation of a JSON data structure |
JsonSlurper |
setCheckDates(boolean checkDates) Determine if slurper will automatically parse strings it recognizes as dates. |
JsonSlurper |
setChop(boolean chop) Turns on buffer chopping for index overlay. |
JsonSlurper |
setLazyChop(boolean lazyChop) Turns on buffer lazy chopping for index overlay. |
JsonSlurper |
setMaxSizeForInMemory(int maxSizeForInMemory) Max size before Slurper starts to use windowing buffer parser. |
JsonSlurper |
setType(JsonParserType type) Parser type. |
Max size before Slurper starts to use windowing buffer parser.
Parser type.
Determine if slurper will automatically parse strings it recognizes as dates. Index overlay only.
Turns on buffer chopping for index overlay.
Turns on buffer lazy chopping for index overlay.
Parse a JSON data structure from content from a reader
reader
- reader over a JSON contentParse a JSON data structure from content from an inputStream
inputStream
- stream over a JSON contentParse a JSON data structure from content from an inputStream
inputStream
- stream over a JSON contentcharset
- charsetParse a JSON data structure from content from a byte array.
bytes
- buffer of JSON contentcharset
- charsetParse a JSON data structure from content from a byte array.
bytes
- buffer of JSON contentParse a JSON data structure from content from a char array.
chars
- buffer of JSON contentParse a JSON data structure from content within a given File.
file
- File containing JSON contentParse a JSON data structure from content within a given File.
file
- File containing JSON contentcharset
- the charset for this FileParse a JSON data structure from content at a given URL.
url
- URL containing JSON contentParse a JSON data structure from content at a given URL.
url
- URL containing JSON contentparams
- connection parametersParse a JSON data structure from content at a given URL. Convenience variant when using Groovy named parameters for the connection params.
params
- connection parametersurl
- URL containing JSON contentParse a JSON data structure from content at a given URL.
url
- URL containing JSON contentcharset
- the charset for this FileParse a JSON data structure from content at a given URL.
url
- URL containing JSON contentparams
- connection parameterscharset
- the charset for this FileParse a JSON data structure from content at a given URL. Convenience variant when using Groovy named parameters for the connection params.
params
- connection parametersurl
- URL containing JSON contentcharset
- the charset for this FileParse a text representation of a JSON data structure
text
- JSON text to parseDetermine if slurper will automatically parse strings it recognizes as dates. Index overlay only.
Turns on buffer chopping for index overlay.
Turns on buffer lazy chopping for index overlay.
Max size before Slurper starts to use windowing buffer parser.
Parser type.