Function jsonParser

Parses JSON data as an array of ResultDto objects and extracts totalResults.