For example, I have a JSON format like this:
{"class":"MySpecialClass", "attri1":"value1", "attri2":"value2"}
I would like to create a Object, which is a MySpecialClass Object, and get two attribute, attri1 and attri2 with the value of value1 and value2.
Here is the requirement:
I have a class file, named,
MySpecialClass, and haveattri1, andattri2, can I create this object, and assign the value in this?I
DONT'Thave the class fileMySpecialClass, I would like to generate it on the runtime, is this possible to do so? Thanks.