2025-11-24 22:52:51 +03:00

28 lines
761 B
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.google.gson.JsonElement
* com.google.gson.JsonIOException
* com.google.gson.JsonParser
* com.google.gson.JsonSyntaxException
*/
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)reader);
}
public static JsonElement parse(String json) throws JsonSyntaxException {
return JsonParser.parseString((String)json);
}
}