JSON Line Data Format
JSON (JavaScript Object Notation) is a relatively compact format that allows for arbitrary complexity. The data here is stored as a newline-delimited JSON. See https://jsonlines.org for a complete description.
- Each line contains a holiday represented as a JSON object.
- Empty fields are represented by
"". - All data is provided in UTF-8.
Example
{"locale":"en-US","region":"","date":"2012-01-01","description":"New Year's Day","type":"NF","notes":""}
{"locale":"en-US","region":"MA","date":"2012-04-16","description":"Patriots' Day","type":"NV","notes":""}
{"locale":"en-US","region":"ME","date":"2012-04-16","description":"Patriots' Day","type":"NV","notes":""}
Fields
locale is a combination of an ISO 639-1 language code, such as
en(English), and an ISO 3166-1 alpha-2 country code, such asUS(United States), separated by a hyphen: e.g.en-US.region is a subdivision of locale, for those locales that have regional holidays. Regions are represented by their respective ISO 3166-2 Country subdivision code. For example, Patriot’s Day is only observed in the
en-USlocale in Massachusetts (MA) and Maine (ME), so there are entries for each of those states.date is provided in
YYYY-MM-DDformat.description is text that simply describes the holiday.
type is a collection of single-character indicators, that describe the holiday:
Nmeans national holiday, which means locale-wide.Rmeans it is a religious holiday.Fmeans the holiday date is fixed, i.e. on the same day each year.Vmeans the holiday date is variable, e.g. tied to a Monday, or the third Thursday of a month.
notes are provided in some cases for clarification, but are not to be used as part of the holiday description.
