public void ForceGetArrayPropertyTest() { var jsonBase = new JsonBase { JsonObject = JObject.Parse("{}") }; var result = jsonBase.ForceGetArrayPropertyToken("myArray"); Assert.IsTrue(result.Type == JTokenType.Array); result.Add(JToken.FromObject("Hi There")); Debug.WriteLine(result.ToString()); }
public T GetPropertyValue(JsonBase jsonBase, string propertyName) => FromToken(jsonBase.ForceGetArrayPropertyToken(propertyName), jsonBase);