0

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']",
}
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
kzs
  • 1,111
  • 5
  • 20
  • 35

0 Answers0