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 8016059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:26:08+00:00 2026-06-04T20:26:08+00:00

The company I’m working at is considering using RestKit. However, the JSON that our

  • 0

The company I’m working at is considering using RestKit. However, the JSON that our server returns is surrounded characters for security reasons. It’s a pain. In another iPhone app, one that does not use RestKit and uses JSON only very little, I parse the string returned from the server, removing the characters preceding and trailing the JSON string. Once the the string is parsed, I call JSONValue on the string (we’re using SBJSON) and get an NSDictionary.

I’ve heard that RestKit features a pluggable architecture. If that’s the case is there somewhere I can intercept the strings coming back from the server prior to the point where RestKit does its parsing?

  • 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-06-04T20:26:10+00:00Added an answer on June 4, 2026 at 8:26 pm

    I wanted to find a fix that did not require me to change the RestKit codebase in any way and I found it. The answer was to create and register my own parser.

    Parsers need to conform to the RKParser protocol. Basically what I needed to do was trim the server response and not parse the response into objects – there was already a parser that did that: RKJSONParserJSONKit. So I subclassed this class and registered my parser at start up:

    [[RKParserRegistry sharedRegistry] setParserClass:[MyJSONParser class] 
                                          forMIMEType:@"application/json"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company is using CVS as our de-facto standard for source control. However, I've
The company I'm currently working for is using Selenium for Uniting-Testing our User Interface.
Our company is a subscription based service with an iPhone/iPad app that allows our
My company develops a web application (in Java using GWT) that employs the Google
Our company as a best practice creates Web Services using a Contract-First approach. The
The company I am working for has a base app that they reskin and
Our Company has many Soap Services and a Few Web sites that just post
My company has an internal Linux server running PHP with an application that displays
My company is currently using Sage MAS as their ERP system. While integrating our
Our company has a share point document server where the UNC looks something like

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.