• Saurabh Kulkarni 26
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello all, 

I have a class structure like below:
 
Public void MainClass {
     Public String a;
     Public Strnig b;
     Public void SubClass{
          Public String x;
          Public String y;
      }
}

I'm Using this class to deserelize JSON. Once I deserelize I'm getting all the details in MainClass instance.
For eg:
JSONPareser jp = (JSONPareser) JSON.deserelize(JSONString,JSONParser.class);
jp object contains value of all the variables.
Now, I want to access value of x and y variables. How could I do that?? 
I'm only able to access jp.a and jp.b ..... What can be done to access x and y..

Thanks in advance 
Saurabh
Hello all, 

I have a class structure like below:
 
Public void MainClass {
     Public String a;
     Public Strnig b;
     Public void SubClass{
          Public String x;
          Public String y;
      }
}

I'm Using this class to deserelize JSON. Once I deserelize I'm getting all the details in MainClass instance.
For eg:
JSONPareser jp = (JSONPareser) JSON.deserelize(JSONString,JSONParser.class);
jp object contains value of all the variables.
Now, I want to access value of x and y variables. How could I do that?? 
I'm only able to access jp.a and jp.b ..... What can be done to access x and y..

Thanks in advance 
Saurabh