Questions tagged [libjson]

libjson is a small C library that packs an efficient parser and a configurable printer.

libjson is a small C library and small codebase that packs an efficient parser and a configurable printer.

See http://projects.snarc.org/libjson/

30 questions
1
vote
2 answers

install a C++ json library on xcode

I'm very new to xcode and c++ programming so please let me know if I'm going about this all wrong. Basically, I want to create a C++ project that requires a library to deal with making and receiving json calls. (this will eventually be integrating…
ThinkBonobo
  • 15,487
  • 9
  • 65
  • 80
1
vote
2 answers

Linking jsoncpp (libjson)

I'm trying to link jsoncpp (lib_json) with a c++ project using cmake. It works perfectly fine on one computer, but on another one (with pretty much the same config) i get an error when i execute my app : dyld: Library not loaded:…
phil vd
  • 61
  • 2
  • 6
1
vote
4 answers

JSONNODE was not declared in this scope

I have just installed libjson from sourceforge.net . I tried executing a simple program But i get this error ‘JSONNode’ was not declared in this scope Here is the code #include #include int main() { JSONNode…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
0
votes
0 answers

C parse json objects with same names

I parse json in C, by "json-c/json.h". I have structure: section: [ {item: {...}, item: {...}, ..., item: {...}} ] I can get 1 item by: struct json_object item = json_object_object_get(section, "item"); How I can get count of items, and parse all…
0
votes
0 answers

Can't install cmake Ubuntu 16.04

Try to install openCV lib and one of the first steps is install cmake, but when I sudo apt-get install cmake I recieve The following packages have unmet dependencies: cmake : Depends: libjsoncpp0 but it is not installable E: Unable to correct…
Evgeny Gil
  • 317
  • 5
  • 17
0
votes
1 answer

Cross compiling libjson-c : Make unsuccessful in libjson-c, Linkhash.c warning

Should I add any flags to avoid this? make all-recursive make[1]: Entering directory '/home/local/ZOHOCORP/vignesh-4691/Downloads/json-c-master' Making all in . make[2]: Entering directory…
0
votes
0 answers

segmentation fault when parsing json data with libjson when program reaches in function json_parse(json) in cpp

I am trying to parse json data from server with libjson library. it works fine when i am using g++ compiler. Now i am using arm-none-linux-gnueabi-g++ compiler. it does not producing any compilation error but when program runs it produces a…
Rafeeq
  • 1
0
votes
4 answers

json_object_object_add, segmentation fault

I am using libjosn-c as below and encounter a Segmentation fault error. If I remove the line json_object_object_add(root, "Child", value);, no error occurs. int main(int argc, char **argv) { json_object *root = NULL, *value = NULL; root =…
0
votes
1 answer

I can't use libjson like n.push_back(JSONNode("RootA", "Hello World"));

I download libjson_7.6.1.zip from http://sourceforge.net/projects/libjson/, and compile it to generate a library. After I create a new project , I find that I can't use libjson like that: n.push_back(JSONNode("RootA", "Hello World"));//(JSONNode…
yskyj
  • 141
  • 1
  • 12
0
votes
2 answers

C++ Multi type map like PHP stdClass

I'm using the libjson for parsing a JSON file in C++. I was wondering if you could do something like a PHP style notation for a map: Just some pseudo code: mapObj["id"] = 4; mapObj["tags"] = vector {"Foo", "Bar"}; structMapObj = { {"name",…
daniel
  • 110
  • 1
  • 7
0
votes
1 answer

Can I get objects by name with libjson?

Can I get objects by name with libjson? I have installed libjson. I am surprised there is no way to get values by object name. I will have to write my own functions or am I missing something?
user3111311
  • 7,583
  • 7
  • 33
  • 48
0
votes
1 answer

Creating an array of structures using libJson

I'm using libJson (C++ library) for parsing a JSON file. My JSON files looks as follows. { "Comany": { "name": "Some Company", "Resources": { "employees": [ {"name": "John", "id": "23432"}, …
Naresh
  • 633
  • 1
  • 6
  • 17
0
votes
1 answer

Cannot Install libjson in c++ Embedding in XCode 4 Project

I simply cannot figure out how to get libjson installed as part of my c++ project. I've been through everything online. Am embedding this in my project. First I tried this Moved the libjson directory into my project Commented out: #define…
simonmorley
  • 2,810
  • 4
  • 30
  • 61
0
votes
1 answer

Determine JSONNode object type in libjson

we are switching Json libaries from JsonCpp to libJson. JsonCpp has nice functions to determine the object type of a json value. Is there any equvialent way of getting this information in libjson? For example, using JsonCpp we have the…
Benzino
  • 577
  • 2
  • 8
  • 21
0
votes
2 answers

Installing libjson-rpc-perl on Linux

I am trying to install libjson-rpc-perl on my linux server but facing an error. Could anyone guide me in right direction ? Details : 09:04:02 # lsb_release -a LSB Version: …
Mad-D
  • 4,479
  • 18
  • 52
  • 93
1
2