Questions tagged [json-c]

JSON-C is a C library for parsing and generating JSON. It includes a reference counted model for JSON objects.

For more information: JSON-C - A JSON implementation in C

86 questions
0
votes
1 answer

Parse Youtube JSONC with GSON

i know how to parse Json in android. but i can't seem to wrap my head around parsing JSONC from Youtube using GSON. i just need to parse the title of the video. Thanks here is the…
Donnie Ibiyemi
  • 971
  • 3
  • 15
  • 26
0
votes
2 answers

Not able to get the json c library

I needs JSON 'C' based opensource to do very minimal job of json .. since I need to put this on some embedded devcie . I am looking for simple functionality with size less than 15kB(json parser and composer).. is there any JSON opesource with less…
indra
  • 832
  • 4
  • 17
  • 33
0
votes
1 answer

Compiliing json-c for Android using androgenizer

I am trying to compile json-c for Android. I am not able to configure using Android.configure.mk file in json-c library in this source code. I tried compiling using the command make -f Android.configure.mk Will anyone please let me know how…
Suman
  • 4,221
  • 7
  • 44
  • 64
0
votes
1 answer

What should I do when json_tokener_parse failed

When I use json-c 0.9 to parse cstr to json object, I found that if json_tokener_parse failed, the return address of json_object is the errcode struct json_object* json_tokener_parse(const char *str){ struct json_tokener* tok; struct…
leo
  • 361
  • 1
  • 5
  • 11
0
votes
1 answer

format of the numbers in json-c

I have numbers much lower than zero (p.e. 1.34e-14) that I want to add to a json object. For this, I am using this code: smallnumber=1.34e-14; struct json_object *pointj=json_object_new_object(); json_object_object_add(pointj,"par",…
user1046064
  • 3
  • 1
  • 4
0
votes
1 answer

segmentation fault reading json file

I need to read the information contained in a json file like this: {"first":10, "second":"0", "P1":"1.e-20","P2":"1000","P3":"1000","P4":"1000","P5":"1"} Since I do not have experience with this issue, I started by playing with the short code you…
user1046064
  • 3
  • 1
  • 4
0
votes
0 answers

youtube api json-c

Ok so I am trying to change my script for getting youtube playlist to the uploaded videos from youtube instead, reason I am changing this is because I want to use the username not an id (e.x. 38484937495 to this instead MrEasyBB) So here is my first…
EasyBB
  • 6,176
  • 9
  • 47
  • 77
0
votes
0 answers

YouTube data api with Json-c in android

Am trying to create a request to youtube and trying to parse the json-c result i get. The code is not working and is throwing exception. Where am i going wrong? Kindly help MainActivity.java try{ HttpClient client = new…
dnivra
  • 749
  • 4
  • 12
  • 30
0
votes
1 answer

Youtube feed api json not give tags :(

I want parse these tags. Earlier, a few months ago, he gave me a tags, but now will not be. My query looks like: https://gdata.youtube.com/feeds/api/videos?author=MYAYTHOR&v=2&alt=jsonc
BarkovAndrey
  • 131
  • 1
  • 1
  • 5
-1
votes
1 answer

Valid json check in C language

I have searched a lot in Google. I want to programmatically check if the string below is valid JSON in C. How can I do that? (I am currently using the json-c library.) char * string = "{ number1 : 100, …
Naroju
  • 2,637
  • 4
  • 25
  • 44
-1
votes
1 answer

gcc doesn't include c header file json-c

On Macbook, I am making something with json-c(https://github.com/json-c/json-c) gcc a.c a.c:1:10: fatal error: 'json.h' file not found #include "json.h" ^ 1 error generated.`> when I try to compile it, it prints out error, but I have…
yolohoam
  • 31
  • 2
  • 6
1 2 3 4 5
6