- 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
40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package androidx.credentials.provider.utils;
|
|
|
|
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 RequestValidationUtil {
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|