Allows selection of parser type for new new JsonSlurper.
To enable the INDEX_OVERLAY parser do this:
             parser = new JsonSlurper().setType(JsonParserType.INDEX_OVERLAY);
 Parser speed in order: INDEX_OVERLAY, LAX, CHAR_BUFFER, CHARACTER_SOURCE.
Use Cases:Use LAX for config files as it allows comments. Use INDEX_OVERLAY for REST calls, WebSocket messages, AJAX, inter process communication, etc. Use CHAR_BUFFER if eager parsing of ints, dates, longs, are appealing. Use CHARACTER_SOURCE if you are dealing with large JSON files over 2MB. INDEX_OVERLAY is highly tuned for object deserialization from JSON.
| Enum constant | Description | 
|---|---|
| CHARACTER_SOURCE | |
| CHAR_BUFFER | |
| INDEX_OVERLAY | |
| LAX | 
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.