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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:22:58+00:00 2026-05-24T17:22:58+00:00

I get a JSON response, that contains an empty key (): { errors: {

  • 0

I get a JSON response, that contains an empty key (“”):

{
    "errors": {
        "": [
            "Wrong email and password combination"
        ]
    }
}

Can this JSON be properly parsed into NSDictionary using JSONKit?

  • 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-24T17:22:59+00:00Added an answer on May 24, 2026 at 5:22 pm

    If it were the data portion and you were using TouchJSON, it would typically get interpreted as null and set as an NSNull object in the dictionary rather than an NSString. (you can compare to [NSNull null]).

    Not sure what happens with JSONKit or whether it being a key rather than a value would make any difference to this (I would assume not, but if its interpreted as NSNull key and there are multiple null keys this would I assume create some issues).

    EDIT: Jason is correct with his comment below. NSNull is only set if there is a null value on the object – an empty string is set as an empty string in the dictionary. If the key value is an empty string then the dictionary has an object with a key of @”” (and it can be retrieved thus
    [myDictionary objectForKey:@””];

    Note this is all in TouchJSON

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

Sidebar

Related Questions

I need my controller to return an AJAX JSON response that contains the updated
What C-sharp type can I serialize to get JSON object with format name:[[1,2,3],[1,2,3],[1,2,3]] If
I am trying to get some errors returned in JSON format. So, I made
I cant find one way to get this value (comment) into json using javascript.
I want to create a global option that when a REST call contains &format=json
We're using jQuery to get a JSON-string from our server (UTF-8 response, also UTF-8
My problem is that the calendar is rendering before the JSON response is sent
I have AJAX requests from which I get a JSON-format response, which is being
Suppose you're in your users controller and you want to get a json response
I have a file that contains some JSON with an extension of .json. I

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.