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

  • SEARCH
  • Home
  • 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 6013315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:31:51+00:00 2026-05-23T02:31:51+00:00

I downloaded JSON files. I added these files in project directory. But when I

  • 0

I downloaded JSON files. I added these files in project directory. But when I am runnig program I am getting an error which is…

-[__NSCFDictionary
JSONRepresentation]: unrecognized
selector sent to instance 0x6003d50

* Terminating app due to uncaught exception
‘NSInvalidArgumentException’, reason:
‘-[__NSCFDictionary
JSONRepresentation]: unrecognized
selector sent to instance 0x6003d50’
*
Call stack at first throw:

I imported header file #import "JSON/JSON.h" and I wrote jsocn code in viewDidLoad function which is like below…

NSDictionary *requestData = [NSDictionary dictionaryWithObjectsAndKeys:
                             @"grio", @"username",
                             @"hellogrio", @"password",
                             nil];

NSString* jsonString = [requestData JSONRepresentation];

NSLog(@"%@", jsonString);

Kindly help me.

Thanks in advance.

  • 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-23T02:31:52+00:00Added an answer on May 23, 2026 at 2:31 am

    It’s not clear from your question which JSON implementation you’re using, but the error means that you’re sending the JSONRepresentation message to an NSDictionary. The dictionary does not understand the message and raises an exception.

    It seems that either you’re not using the JSON library correctly or that you have not installed it correctly in your project.

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

Sidebar

Related Questions

Need to download the JSON2 files but https://github.com/douglascrockford/JSON-js download seems broken. After clicking download
I downloaded the JSON2.js from https://github.com/douglascrockford/JSON-js/blob/master/json2.js and it does not have implementation for JSON2.stringify()
we have a json serializer and deserializer downloaded, it reads the profile object find,
I downloaded the PhotoView reference app for Win7 with source. The app works, but
I downloaded a program implemented in Java (in this case, http://julian.togelius.com/mariocompetition2009/index.php ). I first
I downloaded the Google JSON module a.k.a GSON. I'm ona windows system Could you
I've downloaded the iOS CloudApp API files from the CloudApp website. I would like
I just downloaded the Bing API 2.0 SDK. There are several html files in
I've downloaded the JSON framework DMG from http://code.google.com/p/json-framework/downloads/list . I followed Option 3 here:
I have downloaded the JSON Framework from https://github.com/stig/json-framework . Can anyone please post the

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.