This project is read-only.

UseJson GetManagementLink returns null


When using ChargifyConnect class and the GetManagementLink method, there is an issue when requesting the link if you specify UseJson = true.

Although the request executes successfully, when the response passed to the ConvertResponseTo extension (In the UsefulExtension class) the response is always null.

In the ConvertResponseTo method, the response is parsed Ok into an object, however, there are no keys with "management_link" and therefore always returns null.

if (obj.ContainsKey(key))
Type[] argTypes = new Type[] { typeof(JsonObject) };
ConstructorInfo cInfo = typeof(T).GetConstructor(argTypes);
return (T)cInfo.Invoke(new object[] { obj[key] as JsonObject });

If you use xml, this issue does not occur.