First i was trying to use explode, but i thought it would be easier to use preg_match to get certain values from it.
Values from this string that i need are 'trailStart":"year"' and '"dim0":"country"'.
So what i need is pattern for this function
preg_match_all($pattern, $str, $matches);
and then this function returns results in array "$matches".