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; } }