wjc
2025-03-11 a9706d1dcf725f950b5fa703e4484db7467be9ef
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.hdl.sdk.link.core.utils;
 
/**
 * Created by hxb on 2024/3/22.
 */
public class JsonUtils {
    public static boolean isJson(byte[] bytes) {
        if (bytes[0] == '{' && bytes[bytes.length - 1] == '}' || (bytes[0] == '[' && bytes[bytes.length - 1] == ']')) {
            return true;
        }
        return false;
    }
}