 	
 	func pop() throws -> JSONValue {
 		guard stack.count > 0 else {
-			throw JSONError.SyntaxError("Malformed JSON string")
+			throw JSONError.SyntaxError(malformedJSONString)
 		}
 		return stack.removeLast()
 	}

	func handlePop() throws -> JSONValue {
		
		guard stack.count > 0 else {
			throw JSONError.SyntaxError("Malformed JSON string")
		}
		
		return try handlePop(try pop())

			switch obj {
			case let keyPair as KeyPair:
				guard keyPair.value != nil else {
					throw JSONError.SyntaxError(malformedJSONString)
				}
				d[keyPair.key] = keyPair.value!
				return d
