How should I return a JSON object in the following code?
I want to return a JSON file like this-
{
"Success":true,
"Error":"ANY ERROR"
}
Below is the code-


Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Arvind KushwahaRank #685 · 3.5K reputationPosted Jun 24, 2020, 7:38 PM EDT