I am counting the amount of rows is my JSON result however I am also trying to count the number of items in the result.
The row count works but the item count won't. Getting error : Trying to get property of non-object on the $FLCount line
Code is below
// Counts The Rows - WORKS 
$row = $obj->response->result->Accounts->row;
$countRows = count($row);
// Counts The FL Items ( Doesn't Work )
$FLCount= $obj->response->result->Accounts->row->FL;
$countItems = count($FLCount);
JSON Result Snippet
{
  "response": {
    "result": {
      "Accounts": {
        "row": [
          {
            "no": "1",
            "FL": [
              {
                "val": "ITEM 1",
                "content": "XX"
              },
             {
                "val": "ITEM 2",
                "content": "XX"
              },
              {
                "val": "ITEM 3",
                "content": "XX"
              }
            ]
          }
        ]
      }
    }
  }
}
 
     
     
    