Questions tagged [sbjson]

Related to the SBJson Objective-C JSON parser/generator.

SBJson's homepage is at:

Source code available at:

Tests, containing useful examples:

Example app:

182 questions
0
votes
1 answer

Parse NSString with SBJSON

Quick question: How do I parse a NSString using SBJSON4 The string is an UTF-8 encoded JSON string from a web REST api. I need an NSDIctionary with the parsed data. The string is guaranteed to be a complete JSON document. @interface…
user1028028
  • 6,323
  • 9
  • 34
  • 59
0
votes
1 answer

No visible @interface for 'SBJson4Parser' declares the selector 'objectWithString:error'

I've founded this error "no visible @interface for 'SBJson4Parser' declares the selector 'objectWithString:error'" when I've done importing "SBJson4.h" in my code. I don't know why I've founed this error. SBJson4Parser *parser = [[SBJson4Parser…
PPShein
  • 13,309
  • 42
  • 142
  • 227
0
votes
0 answers

Fetch data from web service in ios

I am developing an iOS app that should pull data from a web service. Now i have developed a basic structure and layout and implemented it to show static content. But when i try to load data from an api with the use SBJSON Lib, it gives a lot of…
Neal
  • 194
  • 3
  • 15
0
votes
1 answer

Is it possible to parse an NSInputStream using SBJson4?

I am trying to a read JSON file containing contact info objects consisting of NSString types and NSMutableArrays. Currently, I am using NSData to read the whole file and then parsing through it. I have utilised Stig's example as mentioned here:…
Alexander
  • 25
  • 5
0
votes
1 answer

Array returned from SBJSON parser is invalid (iOS)

I am running into an error using SBJSON parser on a response string returned from a PHP webservice: NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; NSError *error; SBJSON *json = [SBJSON…
tbmills1
  • 23
  • 6
0
votes
2 answers

How to read json in iOS using sbjson

I am trying to read the following json: [{"result":"1","msg":"Login Successful.”,”title":"Login","redirect":"index.php","servers":"{\"140\":\"10 minute Email\"}","server”:”xxx.xxx.xxx.xxx”}] like so: NSString *responseData = [[NSString…
Waqleh
  • 9,741
  • 8
  • 65
  • 103
0
votes
1 answer

Removing SBJson library from Wikitude

In my app I have to use two different Augmented Reality SDKs. Wikitude and another one. The problem is that I get duplicate symbolserrors when I want to build the app. After some research I found out that both frameworks contain the SBJson library.…
chris13
  • 640
  • 5
  • 14
0
votes
1 answer

SBJson Data Reading and Displaying NSDictionary Objects in Uitableview xcode

Developing full C.R.U.D. app on a remote database. My app is working correctly as of publishing this question. However I would like to advance it. I am a newbie to IOS development. As you can see from my code I am getting the valueForKey name and…
David Egan
  • 424
  • 2
  • 8
  • 23
0
votes
1 answer

iOS Post to Facebook publish screen doesn't show after authentication

Alrighty. I have a button (below) where I take some info from an app and I post it to the users FB feed. It almost never works the first time. Them, it will usually work pretty well after that. What happens is, when I press the button it tells me…
Kyle Luchinski
  • 153
  • 1
  • 4
  • 18
0
votes
2 answers

Accessing Parsed JSON Data from Main View Controller iOS

My current issue is I have successfully fetched data from a web service using SBJSON as well as parsed the data into a Class with several variables. Now, my main view controller is supposed to be accessing those variables within the Class that is…
jsetting32
  • 1,632
  • 2
  • 20
  • 45
0
votes
1 answer

Parsing JSON object for iOS application

Currently, I have within my iPhone app a URL with which contains a JSON object that I must parse. I am able to fetch the JSON object, convert the object to an NSString, now the issue is parsing the object/NSString object. I am currently using…
jsetting32
  • 1,632
  • 2
  • 20
  • 45
0
votes
2 answers

SBJSON parsing in random order every time?

Here's my JSON. I want to parse so that the first object in my JSON comes first when I push it into my array. But now it seems to parse random? Sometimes it's in this order: 1,5,3,2,4 sometimes it's 2,3,1,5,4. Does anyone know what I can do to get…
Jojo
  • 490
  • 1
  • 7
  • 22
0
votes
3 answers

SBJson displays null

I am trying to parse some json data with SBJson to show the current temperature. The example code from this tutorial works perfect: Tutorial: Fetch and parse JSON When I change the code to my json feed i get a null. I am kind of new to JSON but…
Andrew Ho
  • 618
  • 9
  • 21
0
votes
4 answers

Issue in JSON parser in iPhone?

JSON Response like - {"response":{"Success":"Y","items":[{"userid":"255"}]}} I tried to parse like this: -(void)connectionDidFinishLoading:(NSURLConnection *)connection { NSString *jsonStr = [[NSString alloc] initWithData:mutaebleData…
SampathKumar
  • 2,525
  • 8
  • 47
  • 82
0
votes
2 answers

Parsing a Django-created JSON

I recognize that there are a lot of SO topics on this already but all of them seem quite dated. IE: SBJSON parsing issue with Twitter's GET trends/:woeid and JSONValue ARC issue However, my JSON response is a little different. This is the raw…
samuelsaumanchan
  • 617
  • 1
  • 5
  • 10