From 5923e8ceaa12e3d664adb6e79c64d9e013ffbd68 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Fri, 14 Mar 2014 12:06:04 +0100 Subject: [PATCH] fix this incredibly buggy JSON response ... --- UptimeSharp/UptimeClient.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UptimeSharp/UptimeClient.cs b/UptimeSharp/UptimeClient.cs index 41622c1..d91bf85 100644 --- a/UptimeSharp/UptimeClient.cs +++ b/UptimeSharp/UptimeClient.cs @@ -176,7 +176,9 @@ namespace UptimeSharp // fix buggy response by uptimerobot óÒ if (!String.IsNullOrEmpty(responseString)) { - responseString = responseString.Replace("}{", "},{"); + responseString = responseString + .Replace("}{", "},{") // nice one + .Replace(",]", ""); // ok, this is a bummer! } // cache response