Questions tagged [jansson]

questions about the Jansson JSON library

Jansson is a JSON library for C. See: https://github.com/akheron/jansson

35 questions
0
votes
0 answers

Clang warning: linker input unused

I have this warning message from clang when compiling a C++ project using Jansson JSON library. clang: warning: -ljansson: 'linker' input unused I'd like to get rid of it but I really have no idea what causes this. Here is the CMake in…
Manspider
  • 353
  • 3
  • 17
0
votes
1 answer

C programs linked with library

I am trying to link a Library to my C program but I can't make it work according to the library doc https://jansson.readthedocs.io/en/latest/gettingstarted.html#compiling-and-installing-jansson all I have to do is put pkg-config --cflags --libs…
Phil
  • 305
  • 1
  • 3
  • 13
0
votes
1 answer

How to extract keyless values from json array using jansson

I want to extract strings from a JSON that doesn't have the key descriptor in front of the values but where the values are simply separated by a '|'. This is an example of the kind of input I…
Tomás Rodrigues
  • 519
  • 2
  • 17
-1
votes
1 answer

How to extract one single json object as a new json from a bigger json object in C

I want to extract one json key-value pair as a new json object. Sorry I'm pretty new to json, so maybe I'm not stating the question as clear as it could be. So here is an example: json_t main_object = {"AA":11,"BB":22,"CC":33}; So now I want to…
DavidKanes
  • 183
  • 1
  • 1
  • 10
-1
votes
1 answer

Why does my code stop crashing after adding aSan library?

I am currently debugging a C code. This is basically a client from a data collection platform and I was getting weird bugs reading from a linked list. The problem basically is that the "next" pointer of the last item changes in some unknown point…
tarek
  • 3
  • 2
1 2
3