How to get config variable api data from json?

Anuja.k.619
Anuja.k.619 Posts: 15 🌱
edited November 2022 in Development

Hi,

 

I have written class inc #

 

 public class Configvariable

  {

    public string ConfigId { get; set; }

    public string Name { get; set; }

    public string Scope { get; set; }

    public string Description { get; set; }

    public string DataType { get; set; }

    public string DefaultValue { get; set; }

    public bool CanEditSystemValue { get; set; }

    public bool CanEditOverrideValues { get; set; }

    public bool IsSensitiveData { get; set; }

    public List<allowed> AllowedValues { get; set; }

  }

  public class allowed

  {

    public string Value { get; set; }

  }

 

I am not able to get values for items when i deserelize response . Could you please let me know, what's wrong in defining classes?

Tagged:

Answers

  • Anuja.k.619
    Anuja.k.619 Posts: 15 🌱
    edited November 2022

    Hello,

    I am able to solve this through code. I realized Bookmark item is string not an integer data type for parent list item. As soon as i fix this, i am able to deserelize data into items .

     

    Thank you.

    Anuja