{
"code": "00100300",
"lastupdate": "08/Mar/2022 16:55",
"name": "080",
"ordernumber": "4365873",
"projectdescription": "LVB - Smart Device - CIC 833",
"referencecode": null,
"status": "In Use",
"statuscolor": "GREEN",
"workcenters": [
{
"workcenterCode": "00200500",
"workcenterColor": "GREEN",
"workcenterName": "Manual Pack_080 (Dosepak ®)",
"workcenterStatus": "In Use",
"job": {
"jobUid": 135355,
"jobDescription": "4: [CIC833PROD2]1 X Dosepak ® Inner (Wallet) -> Dosepak ® (PBOEL = Not Classi...",
"jobProgress": "5/30 ( 17% )",
"jobStatus": "In Progress",
"jobStatuscolor": "GREEN"
}
}
],
"errorDescription": null
}
I am getting this JSON object from an API call.....but unable to render this in react js.
To be clear I would like it rendered with a structure like this:
|code,lastupdate,name,ordernumber...|
____|workcenters[0] (workcenterCode, workcenterColor...|
________|job (jobUid, jobDescription, jobProgress, jobStatus, jobStatuscolor)|
...
I want to display the whole object on the website ...How should I access all of its attributes ?
<div>{JSON.stringify(myApiResponse)}</div>. Can you please clarify your question.