 
     private var decodeObjectBuffers = DecodeObjectBuffers()
 
-    private mutating func decodeObject() -> Result {
+    private mutating func decodeObject() -> Result<JSON, NSError> {
         let start = loc
         ++loc
         var pairs = decodeObjectBuffers.getBuffer()

        return ret
    }

    private mutating func parseValue() -> Result {
        if depth > ParserMaximumDepth {
            return makeParseError("Exceeded nesting limit around position character \(loc)")
        }

        }
    }

    private mutating func decodeNull() -> Result<JSON, NSError> {
        if loc + 4 > input.count {
            return makeParseError("invalid token at position \(loc) - expected `null`")
        }
