public void UpdateOutput() { try { var o = StringInput.ToObject <object>(); StringOutput = o.ToJson(true); } catch (Exception) { StringOutput = "Error in Json."; return; } }