If anybody have any idea please share..How to Store a json object in variable?
actually i have a json object like:
{
"employees":[
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]
}
i want to store it in a variable. like:
employeedetails = "employees":[
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]
if i store it direct(in employeedetails) like above example it give me
syntax error.