public static short[] DeserializeSystemInt16Array(JSONArray jsonArray) { var result = new short[jsonArray.Length()]; for (var i = 0; i < result.Length; i++) { result[i] = (short)jsonArray.OptInt(i); } return result; }
public static byte[] DeserializeSystemByteArray(JSONArray jsonArray) { var result = new byte[jsonArray.Length()]; for (var i = 0; i < result.Length; i++) { result[i] = (byte)jsonArray.OptInt(i); } return result; }