integrated SwiftyJSON and updated DataManager test function to use JSON