Esempio n. 1
0
        public override void onDeserialize(InputStream stream)
        {
            byte[] data = stream.ToArray();
            string json = Encoding.Default.GetString(data);
            MyOutput my = JsonHelper.FromJson<MyOutput>(json);

            this.m_boolean = my.isBoolean();
            this.m_int = my.getInt();
            this.m_long = my.getLong();
            this.m_float = my.getFloat();
            this.m_double = my.getDouble();
            this.m_string = my.getString();
            this.m_bytes = my.getBytes();
            this.m_date = my.getDate();
        }