|
|
@ -46,7 +46,7 @@ public class ParseContextImpl implements ParseContext { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public DocumentContext parse(InputStream json, String charset) { |
|
|
|
public DocumentContext parse(InputStream json, String charset) { |
|
|
|
notNull(json, "json input stream can not be null"); |
|
|
|
notNull(json, "json input stream can not be null"); |
|
|
|
notNull(json, "charset can not be null"); |
|
|
|
notNull(charset, "charset can not be null"); |
|
|
|
try { |
|
|
|
try { |
|
|
|
Object obj = configuration.jsonProvider().parse(json, charset); |
|
|
|
Object obj = configuration.jsonProvider().parse(json, charset); |
|
|
|
return new JsonContext(obj, configuration); |
|
|
|
return new JsonContext(obj, configuration); |
|
|
|