json-cpp Icon

json-cpp

beta

C++ JSON parser (Now in GitHub)

4.4 Stars (71)
801 Downloads (This Week)
Last Update:
Download jsoncpp-src-0.5.0.tar.gz
Browse All Files
BSD Windows Linux

Description

THIS PROJECT HAS MOVED TO GITHUB.

jsoncpp is an implementation of a JSON (http://json.org) reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.

New homepage:
https://github.com/open-source-parsers/jsoncpp
Old homepage:
http://jsoncpp.sourceforge.net

json-cpp Web Site

Categories

Data Formats

License

Public Domain, MIT License

KEEP ME UPDATED

Other Useful Business Software

Streamline your IT Buying experience Icon

With simplified procurement from insight.com

Streamline your IT Buying experience Icon
Easily access more than 100,000 products and tools with our robust search engine. Manage your entire IT lifecycle from purchase to renewal all in one place — so you can get more done faster.

User Ratings

★★★★★
★★★★
★★★
★★
54
1
2
0
8
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 2 / 5
Write a Review

User Reviews

  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    We have been using Json-cpp for quite a number of years in our mobile games, where it has provided solid, reliable, cross-platform parsing with a very small footprint.

    Posted 11/17/2014
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    hello author, I find a bug. when i use reader prase a num string,expleme "49", it is crash type_ is int type,but value_.map_ is not createed

    Posted 11/07/2014
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    hello author, I find two bug. 1.if json more than twenty value,Could lead to a loss of "[" and "{". example: Json::Value root; Json::FastWriter writer; while(bContinue) { hModule = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, PInfo.th32ProcessID); Module32First(hModule, &MInfo); CloseHandle(hModule); hProcess = OpenProcess(PROCESS_QUERY_INFORMATION,FALSE,PInfo.th32ProcessID); char cFull[1024] = {0}; int iLen = pGetProcessImageFileNameA(hProcess,cFull,1024); Json::Value sysinfo; sysinfo["dwPid"] = (int)PInfo.th32ProcessID; sysinfo["FileName"] = PInfo.szExeFile; sysinfo["FilePath"] = DosDevicePath2LogicalPath(cFull); sysinfo["dwThreads"] = (int)PInfo.cntThreads; sysinfo["dwPriClass"] = (int)GetPriorityClass(hProcess); root.append(sysinfo); bContinue = Process32Next(hSnapshot, &PInfo); } jsondata = writer.write(root); FILE *fp; fp = fopen("aa.txt", "w"); if(fp ==NULL) printf("fails\n"); fprintf(fp, jsondata.c_str()); 2.value["key"] funtion lost aslong(),if value is FileSize. If updated, please notice 674268015@qq.com,Thank you very much.

    Posted 07/27/2014
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    hello author, I find a expression that in json_reader.cpp 566 line. like this: bool badTokenType = ( token.type_ == tokenArraySeparator && token.type_ == tokenArrayEnd ); the boolean expression always return false. I think not '&&' but '||', do you thing so ?

    Posted 06/10/2014
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Segfaults at __gnu_cxx::__exchange_and_add when trying to create and destroy a Reader object. Tried with both ubuntu repositories version and self-compiled version. Using gcc 4.8

    Posted 04/28/2014
Read more reviews

Additional Project Details

Intended Audience

Developers

Programming Language

C++

Registered

2005-07-23

Thanks for helping keep SourceForge clean.

Screenshot instructions:
Windows
Mac
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies
X

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks