Files
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

40 lines
1.1 KiB
Java

package androidx.credentials.internal;
import androidx.annotation.RestrictTo;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class RequestValidationHelper {
public static final Companion Companion = new Companion(null);
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final boolean isValidJSON(String str) {
return Companion.isValidJSON(str);
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final boolean isValidJSON(String jsonString) {
Intrinsics.checkNotNullParameter(jsonString, "jsonString");
if (jsonString.length() == 0) {
return false;
}
try {
new JSONObject(jsonString);
return true;
} catch (Exception unused) {
return false;
}
}
}
}