contrib: update clients of `to_json_string`
[nit.git] / contrib / tinks / src / client / linux_client.nit
index 6ef6b15..bd60702 100644 (file)
@@ -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