• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JSONSerialization 'Garbage at end' error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JSONSerialization 'Garbage at end' error


  • Subject: Re: JSONSerialization 'Garbage at end' error
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 30 Apr 2014 12:21:01 -0700

On Apr 30, 2014, at 8:20 AM, Diederik Meijer | Ten Horses <email@hidden> wrote:

> Now here is the problem: although the JSON parses fine and populates a UITableView without any issues, I am still getting the following error:

If the JSON parsed fine, then the error must be coming from somewhere else. A call to JSONObjectWithData: either returns a parsed object, or returns nil and sets the error. It doesn’t do both :)

You’ll need to do some detective work to find out what function call that error is really coming from. At that point you can set a breakpoint and look at the input data.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: JSONSerialization 'Garbage at end' error
      • From: Andy Lee <email@hidden>
    • Re: JSONSerialization 'Garbage at end' error
      • From: Andy Lee <email@hidden>
References: 
 >JSONSerialization 'Garbage at end' error (From: Diederik Meijer | Ten Horses <email@hidden>)

  • Prev by Date: Re: JSONSerialization 'Garbage at end' error
  • Next by Date: Re: Problem with distributed objects in GUI cocoa apps
  • Previous by thread: Re: JSONSerialization 'Garbage at end' error
  • Next by thread: Re: JSONSerialization 'Garbage at end' error
  • Index(es):
    • Date
    • Thread