쉽게 사용할 수 있는 c++용 json library

1.libjson download ( http://sourceforge.net/projects/libjson/?source=navbar )

2.source파일을 기존 프로젝트에 복사후 import하기

3.Debug모드인 경우 JSON_DEBUG Project속성에 PreDefine 추가

4.Write Sample (int형인경우 json_int_t로 형변환 필요)

JSONNode node ( JSON_NODE);
node.push_back( new JSONNode( "String Node" , "String Value" ));
node.push_back( new JSONNode( "Integer Node" , ( json_int_t) 42 ));
node.push_back( new JSONNode( "Floating Point Node" , 3.14 ));
node.push_back( new JSONNode( "Boolean Node" , true ));
std::string jc = node .write_formatted ();
OutputDebugStringA ( jc. c_str ());