I need to modify my JSON Object by add/remove Json element. Here is my JSON Object,
var candidate = {
"name":"lokesh",
"age":26,
"skills":[
"Java",
"Node Js",
"Javascript"
]
};
I need to remove the element "skills" and output should be like,
{
"name":"lokesh",
"age":26
}
And I again I need to add the element "skills" as string and the output should be like,
{
"name":"lokesh",
"age":26,
"skills":"javascript"
}
Please help,
Thanks in advance.