I need to dynamically construct the following JSON.
{
"status": "SUCCESS",
"code": "200",
"output": {
"studentid": "1001",
"name": "Kevin"
}
}
I tried it with the jsonlite package, but I can't construct the inner JSON object. Please help me try to resolve this.