Discrepancy in JS Count

Hello team,

I’m experiencing an issue with the Rewards API response from Apidog. The JSON response indicates there are 69 entities, but the pagination section shows a total of 109 entities. This discrepancy is causing confusion when processing the data.

Steps to Reproduce:

Access the endpoint
Observe the returned entities count in the response body.
Compare the count with the total indicated in the pagination section.

Expected Result:
The number of listed entities should match the total number indicated in the pagination.

Actual Result:
Listed entities collapsed: 69
Total in pagination: 109
Total in the file downloaded: 109

Relevant Information:
Screenshot attached for reference.
JSON response shows a disparity between actual entities and total count.
Please advise on how to proceed with resolving this discrepancy. Thank you!


response.json|nullxnull

Thank you for your detailed feedback! The reproduction steps and actual/expected results you provided are very clear and helped us quickly identify the issue.

After investigation, we found that the root cause is variables and dynamic values in the JSON response. This caused the Monaco Editor to merge multiple variables into one during parsing, resulting in the displayed entity count (69) not matching the actual total count (109) in pagination and downloaded files.

Our team is currently optimizing the JSON parsing logic to specifically address scenarios with variables and dynamic values, ensuring the editor can accurately count entities. We’ll notify you as soon as the fix is deployed!