public void Property() { var val = new JsonParserFromString().Prop("\"property\":1234"); val.Value.Key.Should().Be("property"); ((double)val.Value.Value).Should().Be(1234); }
public static object Parse(string json) { var result = new JsonParserFromString().All(json); if (result == null) return null; return result.Value; }
public static object Parse(string json) { var result = new JsonParserFromString().All(json); if (result == null) { return(null); } return(result.Value); }