Json encodes the film array for jQuery to use.