Merge: GNU readline wrapper
[nit.git] / contrib / tinks / src / client / linux_client.nit
index d464cc8..bd60702 100644 (file)
@@ -15,7 +15,7 @@
 # GNU/Linux client with config saved to `config.json`
 module linux_client
 
-import mnit_linux
+import mnit::linux
 import linux::audio
 import json::serialization
 
@@ -54,8 +54,7 @@ redef class App
 
                # Save the default config to pretty Json
                var cc = new ClientConfig
-               var json = cc.to_plain_json
-               json = json.replace(",", ",\n")
+               var json = cc.serialize_to_json(plain=true, pretty=true)
                json.write_to_file config_path
 
                return cc