Exemple #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);
        }
Exemple #2
0
        public static object Parse(string json)
        {
            var result = new JsonParserFromString().All(json);

            if (result == null)
                return null;

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

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

            return(result.Value);
        }
Exemple #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);
 }