Aaron
> --
> Jansson users mailing list
> jansso...@googlegroups.com
> http://groups.google.com/group/jansson-users
As you're using zero-byte-terminated strings, it may be easier to call
json_loads() rather than doing both a strlen() and then json_loadb().
> Program received signal SIGSEGV, Segmentation fault.
> jsonp_error_init (error=0x8048b6b, source=0xb7f949a3 "<buffer>") at
I suspect that you're 4th argument, error, is not of the correct type.
Typically you'll allocate an error structure in local (stack) storage
and then pass a pointer to it, as:
json_error_t error;
...
json_loadb( string, strlen(string), 0, &error );
I don't see an & operator in your code. So how are you declaring the variable?
--
Deron Meranda
http://deron.meranda.us/