Use better format for API

This commit is contained in:
JustArchi
2016-06-24 01:55:39 +02:00
parent c3dde4c822
commit 1ad1e8b792

View File

@@ -771,8 +771,12 @@ namespace ArchiSteamFarm {
return null;
}
var response = new {
Bots
};
try {
return JsonConvert.SerializeObject(Bots);
return JsonConvert.SerializeObject(response);
} catch (JsonException e) {
Logging.LogGenericException(e);
return null;