I have a JSON object named myJSONobject with three name value pairs given below. I need to make a new JSON element named place
by concatenating a string (example: Oceania) with two other strings which are values from the same JSON object. So is the following valid? Specially see the value of place
. Is my way of writing the value correct?
{
"country": "AUS",
"state":"VIC",
"place": ""Oceania" + myJSONobject['country'] + myJSONobject['state']",
}