yajl is an event-driven C JSON parser and generator
Questions tagged [yajl]
76 questions
0
votes
1 answer
Yajl to stream huge json file with array data and act on each record
I have a huge json file with Array-data containing json records from a db. Lets say below
[
{"id":2,"name":"def","price":3.714714089426208},
{"id":3,"name":"ghi","price":27.0179624376119},
{"id":1,"name":"abc","price":52.51248221170203}
]
I would…

Naga
- 444
- 2
- 7
- 18
0
votes
1 answer
Using json.loads v/s yajl.loads for reading a large JSON file in python
I am working with huge JSON files, with size ranging from 100-300 MB. Hence in order to save disk space (and computation time?), I converted the JSON file into a .json.gz file and proceeded like this :
with gzip.GzipFile(json_file, 'r') as f:
…

Jarvis
- 8,494
- 3
- 27
- 58
0
votes
1 answer
foodcritic (3.0.3) gem installation is failing in Mac OS High Sierra
My food critic gem installation is failing with the below error
Following gems were not installed:
foodcritic (3.0.3): Error installing foodcritic
ERROR: Failed to build gem native extension. current…

tuk
- 5,941
- 14
- 79
- 162
0
votes
1 answer
Decompose whole Json file received as an array using RPG and YAJL or DB2-SQL on IBM i (V7.3)
I am sort of new with web services and Json on the IBM i (7.3), and not exactly sure how to decompose the following Json file using RPG and YAJL (See below).
The Json IFS file that I am trying to decompose does not fit the "usual" format of header…

RickB
- 1
0
votes
1 answer
Using YAJL to render json in Rails 2.3.4
I want to use YAJL to render JSON. If I require 'yajl' in the controller and perform a render :json => some_hash, will this use YAJL to encode the hash into json? Should I convert the hash to JSON using YAJL's encode method before calling render?
If…

Jey Balachandran
- 3,585
- 5
- 27
- 36
0
votes
1 answer
Parse a JSON array with YAJL
I am trying to parse an array within a JSON file, like so
{
"val": [5,6]
}
using the following code, adapted from the parse_config.c included with the library,
char errbuf[1024];
yajl_val node;
long length;
char *file_data = read_file(&length,…

Sam
- 222
- 2
- 12
0
votes
2 answers
How do I set Three20 to use SBJSON instead of YAJL?
I've tried defining EXTJSON_SBJSON by setting my project's Other C Flags:
-DEXTJSON_SBJSON
It doesn't work: TTURLJSONResponse still uses YAJL.

Elliot
- 6,086
- 11
- 45
- 57
0
votes
1 answer
iPhone: variable type returned by yajl
I'm quite new to iphone programming and I want to do the following stuff:
get data from a JSON REST web server
parse the received data using YAJL
Draw a graph with those data using core-plot
So, 1th item is fine, I use ASIHttpRequest which runs as…

Luc
- 16,604
- 34
- 121
- 183
0
votes
0 answers
Why is Vagrant up failing on yajl and librarian-chef?
When I attempt to bring up vagrant I get this error
$ vagrant up --provision
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Installing Chef cookbooks with…

Brian Bolton
- 3,633
- 8
- 35
- 43
0
votes
1 answer
Where is libYAJLIPhone
Where can i get the libYAJLIPhone-0.2.2 for my iphone project?
I can only find the source code and old version links that don't work
The links below all give the error further below:
1 2
This XML file does not appear to have any style information…

David Karlsson
- 9,396
- 9
- 58
- 103
0
votes
1 answer
make YAJL throw an exception on malformed JSON
Yajl.load does not always throw on parse errors. For example:
irb(main):004:0> Yajl.load('[[],"NOOOOOOOOOOOoooooooooooo!')
=> [[]]
It just ignored that tiny little detail at the end, and continues with what it got to that point. I want it to…

Geremy
- 2,415
- 1
- 23
- 27
0
votes
0 answers
Using javascript objects with UTF-16 property names
I'm calling a service that returns UTF-16 json data.
My question is if the JSON object has UTF-16 strings as property names is there a simple way to reference these properties?
For example, here is how the response data looks like after calling…

PPC-Coder
- 3,522
- 2
- 21
- 30
0
votes
1 answer
How to delete and update an object in yajl C library?
How to delete and update an object in yajl C library?
I can't find this solution anywhere

Carlos
- 21
- 5
-1
votes
2 answers
iPhone - get data from YAJLiOS parser
I have some code where i using yajl parser:
NSArray *JSONArray = [tempContainer yajl_JSON];
NSLog(@"array of json is = %@",JSONArray);
and after parsing i got some json data like
{
"account_number": "123",
"some_stuff": "231",
}
My…

Vlad Z.
- 3,401
- 3
- 32
- 60
-2
votes
1 answer
YAJL JSON PARSING
I am trying to parse below JSON using YAJL. YAJLGEN generated below data structure but the issue i am facing is the number of arrays ex: KEY, CUSTOMER are not fixed. These arrays are returned for each field in the response. I am trying to avoid…

Rob
- 1