Base solution for your next web application
Open Closed

How to print individual JSON element on HTML using Interpolation ? #7519


User avatar
0
xitix created

DTO Object : RequestLog : AssetAllReportPropDto[] = [];

JSON :
[ { "assetID": "16821", "assetSrNo": "VBZL11571", "lastStrDateTime": "22 Aug 2019 09:02:22", "locationStatusTime": "12 Aug 2019 11:03:43", "duration": "9:22:08:19", "distance": "0.564", "mapStatus": "Check", "vsLocationStatusTime": "8/12/2019 11:03:43 AM", "contactNo": "0974500746", "isDeleted": false, "deleterUserId": null, "lastModifierUserId": null, "creationTime": "2019-08-22T07:12:07.492Z", "creatorUserId": null, "id": 0 } ]

{{RequestLog["AssetID"] }} this is not working.


2 Answer(s)
  • User Avatar
    0
    leonkosak created

    {{RequestLog["assetID"] }} maybe?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    As I can see, the JSON result is array, so you should try RequestLog[0]["assetID"]. If it is an object, try @leonkosak's suggestion.