This is in response to a question asked by a user on this platform. I found it interesting and was trying to find a solution to it. Unfortunately by the time I found one, the question got deleted.
The user wanted to remove "_text" from the json object. The json looks like below -
{
type: {
_text: "user",
},
data: {
desc: {
_text: "abbc",
},
desc1: {
_text: "jhd",
},
},
data1: {
clients: {
client: [
{
clientName: {
_text: "Test 111",
},
date: {
_text: "02/02/2020",
},
},
],
},
},
msg: {},
id: {
_text: "123",
},
},
{
type: {
_text: "student",
},
data: {
desc: {
_text: "dgfg",
},
desc1: {
_text: "jgjg",
},
},
data1: {
clients: {
client: [
{
clientName: {
_text: "Test 333",
},
date: {
_text: "02/02/2020",
},
},
],
},
},
msg: {},
id: {
_text: "134",
},
},