Generate media query string from JSON