Novas respostas marcadas com a tag qt
0
Existe algumas bibliotecas JSON para C++, mas se não quiser usar, pode fazer um pequeno parser:
string strJSON = string("..aqui vai o json.")
string strProp = string("\"idade\":");
int szJSON = strJSON.size();
//encontra a posição de inicio da propriedade:
int pos = strJSON.find(strProp);
if (pos == std::string::npos)
throw ...
As 50 principais respostas recentes são incluídas
Tags relacionadas
qt × 184c++ × 127
qml × 18
pyqt × 16
python × 15
qtgui × 15
string × 9
gui × 8
mysql × 4
android × 4
sql × 4
sqlite × 4
debug × 4
pyqt-4 × 4
banco-de-dados × 3
linux × 3
visual-studio × 3
classes × 3
python-2.7 × 3
thread × 3
visual-studio-2015 × 3
conversão-de-tipo × 3
mingw × 3
detecção-de-colisão × 3
qtwebkit × 3