Beispiel #1
0
 public object DeserializeFromJson(Stream stream, bool caseSensitiveMaps, Encoding encoding)
 {
     using (var source = encoding == null ? new StreamSource(stream, JsonLanguage.Instance)
                                    : new StreamSource(stream, encoding, JsonLanguage.Instance))
         return(JazonParser.Parse(source, caseSensitiveMaps));
 }
Beispiel #2
0
 public object DeserializeFromJson(ISourceText source, bool caseSensitiveMaps)
 {
     return(JazonParser.Parse(source, caseSensitiveMaps));
 }
Beispiel #3
0
        public object DeserializeFromJson(string json, bool caseSensitiveMaps)
        {
            var source = new StringSource(json, JsonLanguage.Instance);//todo: reuse instance

            return(JazonParser.Parse(source, caseSensitiveMaps));
        }