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
1
vote
1 answer

ASIHTTPRequest and ASINetworkQueue and JSON Parsing

// // RootViewController.m // JsonPetser33 // // Created by ME on 9/26/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import "RootViewController.h" // #import "SBJson.h" #import "ASIHTTPRequest.h" #import…
user966337
  • 11
  • 3
1
vote
3 answers

JSON: how to deal with double quotations?

I'm using SBJson to parse by JSON string. Some requests return somethink like this: { "jsonResponse":[{ "id":"2", "name":"Somename", "title":"Json problem:"ErrorParsing"", //problem is here. with double quotations. how to remove them or remove…
Timur Mustafaev
  • 4,869
  • 9
  • 63
  • 109
1
vote
2 answers

Core-Data NSObjectInaccessibleException NSManagedObject has been invalidated

I have some code that downloads lessons as JSON, parses them, and puts them into core data. They are then displayed in a UITableView. Currently, when a user has many lessons the connection sometimes times out. So I am attempting to parse the…
arsenius
  • 12,090
  • 7
  • 58
  • 76
1
vote
4 answers

JSON Parse Error

I am using SBJson framework (also known as json-framework) for the iOS. When parsing a certain JSON file, I am getting the following error: -JSONValue failed. Error is: Unescaped control character [0x09]' I have used this framework many times and I…
darksky
  • 20,411
  • 61
  • 165
  • 254
1
vote
1 answer

Unexpected end of input with SBJson in Objective-C

I have the following code that is trying to parse a JSON that I am returning from a website: - (void)connectionDidFinishLoading:(NSURLConnection *)connection { [connection release]; NSString *responseString = [[NSString alloc]…
Doug Molineux
  • 12,283
  • 25
  • 92
  • 144
1
vote
5 answers

Help needed to parse json for iPhone

I want to parse a JSON file in my iphone app. The problem is i can parse simple json files but i am confused how to do parsing on following type of json: [{"123": [{ "item_id":"222", "image_count":"2", "image_filetype":".jpg", …
Pruthvid
  • 683
  • 10
  • 19
1
vote
1 answer

Migrate from SBJson 2.2 to SBJson 5

Hello We are using SBJson lib with version pod 'SBJson', '~>2.2.3' and want migrate to latest version pod 'SBJson5', '~> 5.0.0'. What will be effort to migrate. I mean will it support old methods or do i need find the deprecated or changed…
user968597
  • 1,164
  • 2
  • 15
  • 30
1
vote
1 answer

Compare Values of Database and Json and display result

I am creating a table with multiple columns. In the left column I want to get the indicator name which is stored in a database and I have to check that the indicator id in database and in json (API) matches and then display the name in that column.…
Itaws
  • 330
  • 1
  • 22
1
vote
1 answer

SBSJsonParser XCode 6 Compiler warnings

I have a small app I am testing in XCode6 and I get 2 compiler warnings for the SBSJsonParser.m file Semantic Issue variable 'k' may be uninitialized when used here (in function scanRestOfDictionary) c++; if (![self scanValue:&v]) { …
1
vote
1 answer

iOS - SBJson4Parser - +parserWithBlock:allowMultiRoot:unwrapRootArray:errorHandler: synchronous?

I m using SBJson version 4.0.0. I parse my JSON by invoke this function (from SBJson documentation): + (id)parserWithBlock:(SBJson4ValueBlock)block allowMultiRoot:(BOOL)allowMultiRoot unwrapRootArray:(BOOL)unwrapRootArray …
gran33
  • 12,421
  • 9
  • 48
  • 76
1
vote
1 answer

iOS SBJson request goes bad

I'm trying to parse a JSON feed from my wordpress blog. I've got a custom field I need to use but can't get it to work with SBJson. Here's how my feed looks like (I've stripped the other useless stuff): { "status":"ok", "count":27, …
George Ciobanu
  • 655
  • 2
  • 6
  • 24
1
vote
2 answers

Put value to a json response by using SBJson

I want to add value to a response. But the response is in this format { "participants": [ { "lat_long": "0.0,0.0", "name": "alma" } ], …
Giya
  • 250
  • 3
  • 11
1
vote
2 answers

how to parse with double quotes array of dictionary into json in ios?

How to add double quotes for numbers. When I am parsing, for numbers not coming double quotes. For strings double quotes are coming fine. I want double quotes for all. Below is my array of dictionary This array of dictionary I was created ( …
user2694118
  • 85
  • 1
  • 3
  • 10
1
vote
3 answers

Creating A JSON Object from NSDictionary iPhone

I want to create a JSON String as below { "veneue": { "clientId": "b", "name": "d", "tagline": "f", "phone": "b", "address": "d", "city": "f", "state": "b", "zip": "d", …
Muhammad Umar
  • 11,391
  • 21
  • 91
  • 193
1
vote
1 answer

NSURLErrorDomain Code = -1012 error

I am trying to log into a server, but I am receiving an error. I am using SBJSON to convert the request into JSON, and to convert it from JSON back to a string, and I am using one method to make all of my API calls. I've looked around for a…
Chandler De Angelis
  • 2,646
  • 6
  • 32
  • 45