Esempio n. 1
0
        public void Property()
        {
            var val = new JsonParserFromString().Prop("\"property\":1234");

            val.Value.Key.Should().Be("property");
            ((double)val.Value.Value).Should().Be(1234);
        }
Esempio n. 2
0
        public static object Parse(string json)
        {
            var result = new JsonParserFromString().All(json);

            if (result == null)
                return null;

            return result.Value;
        }
Esempio n. 3
0
        public static object Parse(string json)
        {
            var result = new JsonParserFromString().All(json);

            if (result == null)
            {
                return(null);
            }

            return(result.Value);
        }
Esempio n. 4
0
 public void Property()
 {
     var val = new JsonParserFromString().Prop("\"property\":1234");
      val.Value.Key.Should().Be("property");
      ((double)val.Value.Value).Should().Be(1234);
 }