yajl is an event-driven C JSON parser and generator
Questions tagged [yajl]
76 questions
3
votes
3 answers
Failing to install ruby gem "yajl-ruby"
I am trying to install the ruby gem "yajl ruby". I'm running Mac OS 10.7.4 and Ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]. When I run:
sudo gem install yajl-ruby
I get the following output:
Building native extensions. This could…

histelheim
- 4,938
- 6
- 33
- 63
3
votes
1 answer
How to install ijson python package under Mac OSX (find_library issue?)
I need to parse a potentially large json file. So I looked for solutions to help me and found the ijson library. Seems to perfect for this purpose.
I installed it with pypm (I use Active Python), ports and directly with the supplied setup…

Markus Breuer
- 117
- 1
- 6
2
votes
1 answer
no such file to load -- yajl
I have this in my seeds file
require 'rubygems'
require 'yajl'
and I keep getting this error
rake aborted!
no such file to load -- yajl
Tasks: TOP => db:seed
(See full trace by running task with --trace)
The code works when I run it outside of…

p01nd3xt3r
- 821
- 1
- 9
- 19
2
votes
1 answer
yajl_tree_get return 0 when path node name is the same
here is the JSON text:
{
"retcode": 0,
"result": {
"info": [{
"face": 180,
"flag": 8913472,
"nick": "tom",
"uin": 2951718842
}, {
"face": 252,
"flag":…

fr33m4n
- 542
- 2
- 13
- 31
2
votes
2 answers
YAJL - JSON on iOS/iPhone
In my iPhone app, I am trying to use the JSON library (YAJL) to create a JSON string that looks like the following format:
{"user":
{"name":"Jon", "username":"jon22", "password":"passw@rd", "email":"jon22@example.com"}
}
But I can't figure out…

Brett
- 11,637
- 34
- 127
- 213
2
votes
0 answers
how to use yajl-ruby to parse and filter data from big json file (2G size)
i need to filter out some data from a json file(about 2G size).
the josn is like
{ "dataName": "staff",
"version": 5,
"data": [
{"name":"Fred",
"team":"football",
"hobby":"climbing"
},
{"name":"Tony",
…

explorer_mu
- 21
- 3
2
votes
0 answers
Getting key of json object in C using YAJL
I am trying to get the key for an object in yajl in C
{
"Val":"box"
}
so for above code, I am trying to get the key 'Val'. But so far I am not able to find any way to do so. I know how to get the keys from the array but not from the object.
Any…

Hemant Zope
- 21
- 2
2
votes
1 answer
YAJL stream parsing and Twitter streaming API
Twitter streaming API returns blocks of JSON, but my YAJL parser stops after the first one. I guess this is because every block of JSON is independant (i.e: not in a global array), so YAJL has no way of knowing it's not done.
How can I handle this ?…

Thomas Joulin
- 6,590
- 9
- 53
- 88
2
votes
1 answer
Encoding custom classes using yajl-objc
Summary. Based on some benchmarks, I chose yajl-objc for my iPhone JSON parser. I was testing it with an arbitrary custom class (one NSNumber and two NSString properties). If I created an NSDictionary with key-value pairs matching the class…

jluckyiv
- 3,691
- 3
- 22
- 15
2
votes
2 answers
JSON support was not enabled-Modsecurity
1) I have compiled modsecurity using YAJL using --with-yajl but in the config log I see that the yajl library is not picked and in the modsecurity log I get
"JSON support was not enabled"

Java Geo
- 149
- 2
- 15
2
votes
1 answer
MGTwitterEngine error: yajl/yajl_parse.h no such file or directory
I'm using MGTwitterEngine in my project and when compiling the whole project I get 23 error which are all releated to yajl/yajl_parse.h no such file or directory
Is there any solution for that?
Thanks!
user330885
2
votes
1 answer
LoadError on require yajl
I have installed yajl, libyajl-dev, and the yajl-ruby gem on a ubuntu 10.04 installation.
I added the gem to a 2.3.8 ruby on rails installation since the release notes for 2.3.6 indicated that yajl would be used if present in the system. Rails bails…

Aaron Brashears
- 23
- 1
- 4
2
votes
1 answer
What's the best way to use yajl-ruby with my Rails project?
Rails 2.3.6 started using the fast new json library, yajl-ruby, "if available".
In the "JSON gem Compatibility API" section of the yajl-ruby readme it outlines a method to just drop in yajl-ruby inclusion and have the rest of the app seamlessly pick…

John Bachir
- 22,495
- 29
- 154
- 227
2
votes
1 answer
Yajl::ParseError: lexical error: invalid char in json text
Parsing with YAJL Ruby I get the following error
2.0.0-p0 :048 > Yajl::Parser.parse "#{resp.body}"
Yajl::ParseError: lexical error: invalid char in json text.
{"id"=>2126244, "name"=>"bootstrap",
…

Luca G. Soave
- 12,271
- 12
- 58
- 109
2
votes
1 answer
Using YAJL to pull a streaming API in Rails
I'm trying to get YAJL working in my app - been testing it off the Twitter API and the Digg API and I can't seem to get it working.
I'm not sure where I'm going wrong. Tapping into the Twitter streaming API using this code: (username/password…

matthewvb
- 932
- 2
- 11
- 21