I checked source code. The lookuptable was created only for CreditData. Because of that Response is not parsing
Simple example:
var r = fastJSON.JSON.ToObject<Response<CreditData>>("{\"data \":{\"Credit \":10},\"Error\":\"noerror\"}");
Debug.Assert(r.Error != null);
Debug.Assert(r.data != null);
public class Response<T>
{
public T data { get; set; }
public string Error { get; set; }
}
public class CreditData
{
public int Credit { get; set; }
}
I checked source code. The lookuptable was created only for CreditData. Because of that Response is not parsing
Simple example: