Refactored data retrieving part. Now, it combines json data in the data file with params from path part and query string