Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 674623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:43:39+00:00 2026-05-14T00:43:39+00:00

http://github.com/gabriel/yajl-objc I’ve already tried SBJSON, and while it works, I’m looking into alternative options

  • 0

http://github.com/gabriel/yajl-objc

I’ve already tried SBJSON, and while it works, I’m looking into alternative options to improve on parsing speed and memory consumption. Usage of this library doesn’t seem to be as straightforward as SBJSON though, and I’m not sure how to begin using yajl.

Something like this:

NSArray *parsed = [data yajl_JSON];

Results in the following error:

-[NSConcreteMutableData yajl_JSON]: unrecognized selector sent to instance 0x5372180

Attempting to parse an NSString object results in the same problem. I can see the interface, but there doesn’t seem to be an implementation… Am I not linking into the static lib properly?

Google turns up very little on usage examples. The doc on for the project itself only says the following about generating objects from json data/strings.

#import "NSObject+YAJL.h"

NSData *JSONData = [NSData dataWithContentsOfFile:@"example.json"];
NSArray *arrayFromData = [JSONData yajl_JSON];

NSString *JSONString = @"[\"Test\"]";
NSArray *arrayFromString = [JSONString yajl_JSON];

Which looks pretty much the same as what I’ve tried. What am I missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:43:39+00:00Added an answer on May 14, 2026 at 12:43 am

    You must have missed that part:

    Under ‘Other Linker Flags’ in the Test target, add -ObjC and -all_load (So NSObject+YAJL category is loaded).

    I had no problems with using YAJL, until I ran the app in Release mode, then I got the same error as you – turns out, I’ve only added these flags to Debug mode, not to all of them.

    In general, I can recommend YAJL, it’s definitely faster than all other alternatives (see benchmark results on my blog).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

at first, sry for my english... :) I'm using the YAJL Framework http://github.com/gabriel/yajl-objc My
http://github.com/samliu/rlinkset ^^ My code so far is pushed to there. Essentially, I'm using resource_controller
http://github.com/uswaretech/Django-Socialauth/tree/master/socialauth/ I'm a bit confused on how I should use this. Of course, I
http://github.com/collectiveidea/awesome_nested_set awesome nested set plugin and currently, if I choose a sub category as
I've recently installed http://github.com/peteonrails/vote_fu/tree/master (vote_fu) on an app I've been working on. Essentially, I
Now that http://github.com/why/hpricot/wikis/home no longer exists.
Copied from the site http://github.com/notahat/machinist/ Machinist makes it easy to create test data within
From http://github.com/diaspora/diaspora/blob/master/spec/models/profile_spec.rb describe Profile do before do @person = Factory.build(:person) end describe 'requirements' do
I use http://github.com/abraham/twitteroauth PHP library for reaching Twitter REST API: <?php session_start(); require(config.php); require(twitteroauth/twitteroauth.php);
I use http://github.com/abraham/twitteroauth PHP library for reaching the Twitter REST API. My config file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.