c++ - convert my custom object into json string in Qt Framework -
is there way convert custom object json?
class entityrepetitive: public entitytreatment { public: entityrepetitive(int channelnum,float power,float freq,int numofpulses,float waittime, int numoftrains); ~entityrepetitive(); int channelnum; float power; float freq; int numofpulses; float waittime; int numoftrains; }; my cpp file:
er = new entityrepetitive(channelnum,power,freq,numofpulses,waittime,numoftrains); i want convert er jsonstring , vice versa.
Comments
Post a Comment