diff --git a/Server/Sender.mjs b/Server/Sender.mjs index 4a84652..2e6f0eb 100644 --- a/Server/Sender.mjs +++ b/Server/Sender.mjs @@ -44,7 +44,7 @@ class Sender { * @return {void} */ json(status_code, obj) { - this.string(status_code, "application/json", obj); + this.string(status_code, "application/json", JSON.parse(obj)); } /** * Sends a given string with a given content-type.