Remove Square brackets [] from a string of output from a!tojson

I was sending a data in json format like { a!tojson("fruit": "apple") } but the output i was getting { "fruit": ["apple"] }but i need without square brackets . Could anyone please help me on this and thanks for advance

  Discussion posts and replies are publicly visible

Parents Reply Children