johnezang/JSONKit — Issue #68: NSInternalInconsistencyException runtime error (mutating method sent to immutable object)
Author: funkadelic
Created: 2012-01-11 22:55:15+00:00
State: open

hi, i am attempting to migrate an existing iOS app from SBJson to JSONKit, and i'm running into this runtime error:

```: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[JKArray replaceObjectAtIndex:withObject:]: mutating method sent to immutable object'```

All i've done in my app is replace SBJson's `JSONValue` to JSONKit's equivalent `objectFromJSONString` & SBJson's `JSONRepresentation` to JSONKit's equivalent `JSONString`

this is with the latest (as of today) commit 0aff3deb5e from 12/18/2011 on Xcode 4.2 & iOS 5

is there something i can do to try and track down the issue?