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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -