This is my json string :
{
gateway=vary,
gateway_text=xyz,
gateway_data=,
start=17/02/2022 06:23:45,
end=17/03/2022 06:23:45,
promo_time=17/03/2022 06:23:45,
in_process_canceled=0.0,
id=817957632
}
When I am trying to convert it to JSON object, it is throwing the exception
val obj = JSONObject(purchaseData.toString())
Please help me resolve this.