Adds the layout information to the JSON response.