17 lines
		
	
	
	
		
			503 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			503 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package net.minecraft.util;
 | |
| 
 | |
| import com.google.gson.JsonElement;
 | |
| import com.google.gson.JsonIOException;
 | |
| import com.google.gson.JsonParser;
 | |
| import com.google.gson.JsonSyntaxException;
 | |
| import java.io.Reader;
 | |
| 
 | |
| public class LenientJsonParser {
 | |
| 	public static JsonElement parse(Reader reader) throws JsonIOException, JsonSyntaxException {
 | |
| 		return JsonParser.parseReader(reader);
 | |
| 	}
 | |
| 
 | |
| 	public static JsonElement parse(String reader) throws JsonSyntaxException {
 | |
| 		return JsonParser.parseString(reader);
 | |
| 	}
 | |
| }
 |