         
         // save JSON dictionary to file
         do {
-            let data = try JSON.dictionary(json).serialize()
+            let data = try JSON(dictionary: json).serialize()
             try data.write(to: fileURL, options: .atomicWrite)
         } catch {
             let message = "Unable to create config file"

     - retuns: A ConversationReponse object populated with the input's data
     */
    public func deserializeAnswerUnits(string: String) throws -> ConversationResponse {
        let toJson = try JSON(jsonString: string)
        do {
            let answerUnits = try ConversationResponse(json: toJson)
            return answerUnits
        } catch {
            throw JSON.Error.valueNotConvertible(value: toJson, to: ConversationResponse.self)
        }
    }
    
    /**

     */
    public func writeConfig(type: ReturnType) throws -> URL {
        // construct JSON dictionary
        var json = [String: Any]()
        json["conversion_target"] = type.rawValue
        
        // create a globally unique file name in a temporary directory
        let suffix = "DocumentConversionConfiguration.json"
