Questions tagged [yajl]

yajl is an event-driven C JSON parser and generator

76 questions
2
votes
1 answer

Install yajl-py on OS X: "Yajl shared object cannot be found. Please install Yajl and confirm it is on your shared lib path."

I'm trying to install yajl-py () on my Mac. However, it gives the following error: Yajl shared object cannot be found. Please install Yajl and confirm it is on your shared lib path. I installed yajl via ports, so I know it's there, the question is…
Bialecki
  • 30,061
  • 36
  • 87
  • 109
1
vote
0 answers

EventMachine EM.system losing escaped backslashes in command

I have the following Ruby code, which uses EM.system to kick off a second Ruby script: json = Yajl::Encoder.encode(Yajl::Encoder.encode({:foo=>"bar \"hello\""})) cmd = "ruby decoder.rb #{json}" puts "The cmd is #{cmd}" EM.run do EM.system(cmd) do…
Jennifer Hickey
  • 632
  • 1
  • 4
  • 9
1
vote
1 answer

Multiple Yajl parser objects vs a single global parser object

Working in rails 3.2.1, I am bilding an application which performs a large number of JSON requests and parses the returned data using Yajl. My dilemma is weather or not to initialize a Yajl parser object each time a JSON data is requested: json =…
rudolph9
  • 8,021
  • 9
  • 50
  • 80
1
vote
1 answer

"internal compiler error" from yajl-ruby build on OpenSUSE 12.1

As a requirement for chef-client, I am trying to install yajl-ruby on OpenSUSE 12.1. So far, it is returning the following message: linux:~ # gem install yajl-ruby Building native extensions. This could take a while... ERROR: Error installing…
Rilindo
  • 1,756
  • 1
  • 11
  • 20
1
vote
1 answer

What JSON gem should I use in a Rails 3.1 project?

The release notes say: JSON decoding now uses the multi_json gem which also vendors a json engine called OkJson. The yaml backend has been removed in favor of OkJson as a default engine for 1.8.x, while the built in 1.9.x json implementation…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
1
vote
2 answers

Parsing json with YAJL in C

I must be doing something wrong... Or this may be a bug in YAJL, but I highly doubt that. I'm unable to retrieve the first element from a json object. I went back to the YAJL source to test this with the example parse_config.c and it failed as…
Steve Lazaridis
  • 2,210
  • 1
  • 15
  • 15
1
vote
0 answers

#import No such file or directory

I'm using xcode 4.02, iOSSDK4.3, YAJL 0.2.24. I copied the YAJL.framework folder over to the iPhoneOS4.3sdk frameworks dir and then added the framework to my xcode project (Build Phases - Link Binary with Libraries) Build settings - Other linker…
imobilizer
  • 161
  • 1
  • 13
1
vote
4 answers

what is the hash structure to produce json?

Below is a sample of final json I pass to javascript. I will use the (yajl) ruby library to create this json from a hash. The question is what should a ruby hash that produces the json below look like? var data = [{ data: "basics", …
Radek
  • 13,813
  • 52
  • 161
  • 255
1
vote
0 answers

Is representing {"some":"thing\n"} - json object into a unicode considered valid json?

According to JSON RFC: A JSON text is a sequence of tokens. The set of tokens includes six structural characters, strings, numbers, and three literal names. A JSON text is a serialized object or array. JSON-text = object / array These are…
1
vote
1 answer

How to retrieve JSON key having array of values using YAJL RPGLE

I am just starting to explore on writing/parsing JSON using YAJL in RPGLE I am encountering a situation were i need to parse a key with array of values e.g. {"key":[value1,value2,value2]} I am seeing examples to parse array of objects i.e. { "key" :…
Yusuf
  • 169
  • 8
1
vote
0 answers

iOS: YAJL framework not detected

I have an old objective-c project. In the framework group I have different frameworks such as CoreDate, UIKit... and the YAJL one. When I try to build my project I get this error: ld: file too small (length=0) file…
Ne AS
  • 1,490
  • 3
  • 26
  • 58
1
vote
0 answers

Trying to use the Yajl example code, don't know how to give the input to the program

I've compiled the code provided by YAJL library in C. Don't know why the compiled program not parsing my file or is my file format is wrong? I'm quite new in parsing JSON file. This is where C code example located at…
user8081549
1
vote
0 answers

Python pip install fails with error

I have been trying to install yajl>=0.3.5 package and i get the following error. This happens for only this specific package and not for others i am currently using. The command is as follows. pip install…
Anurag Narra
  • 95
  • 1
  • 9
1
vote
2 answers

Install YAJL in iPad project

Ireally need help. I want to use YAJL in my iPad project. I add YAJL framework to my project. But when I run my project I receive this error : dyld: Library not loaded: /Users/gabe/Library/Frameworks/YAJL.framework/Versions/A/YAJL Referenced from:…
Azi
  • 93
  • 1
  • 1
  • 11
1
vote
2 answers

How to use the YAJL for objective c

Hi can any one tell the steps to use the YAJL to parse the json object in objective c Thanks..
rockey
  • 638
  • 4
  • 16
  • 34