Пример #1
0
        public static double[] DeserializeSystemDoubleArray(JSONArray jsonArray)
        {
            var result = new double[jsonArray.Length()];

            for (var i = 0; i < result.Length; i++)
            {
                result[i] = jsonArray.OptDouble(i);
            }

            return result;
        }
Пример #2
0
        public static float[] DeserializeSystemSingleArray(JSONArray jsonArray)
        {
            var result = new float[jsonArray.Length()];

            for (var i = 0; i < result.Length; i++)
            {
                result[i] = (float)jsonArray.OptDouble(i);
            }

            return result;
        }