{
	"created_utc": {{ written_at_utc.isoformat()|escape_json }},
	"next_update_utc": {{ next_update_utc.isoformat()|escape_json }},
	"alerts_count": {{ alerts|length }},
	"alerts": [
	{% for alert in alerts %}
		{
			"title": {{ alert.title|escape_json }},
			"detail_url": "http://wxalerts.org/detail/{{ alert.uuid }}.json",
			"uuid": {{ alert.uuid|escape_json }},
			"sender": {{ alert.sender|escape_json }},
			"event": {{ alert.event|escape_json }},
			"severity": {{ alert.severity|escape_json }},
			"timezone": {{ alert.timezone_abbr|escape_json }},
			"effective": {{ alert.effective_utc.isoformat()|escape_json }},
			"expires": {{ alert.expires_utc.isoformat()|escape_json }},
			"region": {{ alert.region|escape_json }},
        	"states": [{% for state in alert.states_list %}
        		{{ state.name|escape_json }}{% if not loop.last %},{% endif %}{% endfor %}
        	],
			"coordinates": [{% for county in alert.counties_list %}
			    [{{ county.lng }}, {{ county.lat }}]{% if not loop.last %},{% endif %}{% endfor %}
			],
			"area_description": {{ alert.area_desc|escape_json }}
		}{% if not loop.last %},{% endif %}
	{% endfor %}
	]
}
{
	"created_utc": {{ written_at_utc.isoformat()|escape_json }},
	"next_update_utc": {{ next_update_utc.isoformat()|escape_json }},
	"alerts_count": {{ alerts|length }},
	"alerts": [
	{% for alert in alerts %}
		{
			"title": {{ alert.title|escape_json }},
			"detail_url": "http://wxalerts.org/json/detail/{{ alert.uuid }}.json",
			"uuid": {{ alert.uuid|escape_json }},
			"sender": {{ alert.sender|escape_json }},
			"event": {{ alert.event|escape_json }},
			"severity": {{ alert.severity|escape_json }},
			"timezone": {{ alert.timezone_abbr|escape_json }},
			"effective": {{ alert.effective_utc.isoformat()|escape_json }},
			"expires": {{ alert.expires_utc.isoformat()|escape_json }},
			"region": {{ alert.region|escape_json }},
        	"states": [{% for state in alert.states_list %}
        		{{ state.name|escape_json }}{% if not loop.last %},{% endif %}{% endfor %}
        	],
			"coordinates": [{% for county in alert.counties_list %}
			    [{{ county.lng }}, {{ county.lat }}]{% if not loop.last %},{% endif %}{% endfor %}
			],
			"area_description": {{ alert.area_desc|escape_json }}
		}{% if not loop.last %},{% endif %}
	{% endfor %}
	]
}
Update detail link in alerts template.
Update detail link in alerts template.
