Update REST.php

grabDataFromJsonResponse was not working for json paths containing periods in them. This fix replaces explode with preg with RegX matching escaped periods.