I am trying to deal with a task of deserializing an object into a class of my design. The string I will receive looks like this:
{nodename:"node1", version:"v1", PARM1:"p1", PARM2:"p2" ,…, PARAMN:"pn"}.
As far as I understand, I will need a class for this json string, say Node is my class name. I know I can easily deal with nodename and version by adding two fields into my class Node. But what about the set of Params. Because the number of params in this string is dynamic and out of my control, I have no idea how to design my class. Please shed your light on this. Or do you think that is just impossible? Thanks in advance