County_master.json File
JSON - JavaScript Object Notation, is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of name–value pairs and arrays (or other serializable values). The following details the use of the various JSON files used in the system.
Some basic information about the structure of JSON files. (see the County_master.json file below.
- Elements are arranged in key => value pairs (i.e., name => Delta).
- All text entities must be enclosed in double quotes (i.e., "name", "Delta")
- The key must be followed by a colon ( : ).
- All values (except the last one) must be followed by a comma ( , ). Note: no comma after the 50 on line 7 (last "color" value) nor the closing brace on line 8 (last "county" value).
- Multi level values must be enclosed in matching braces ( { } ). Open braces on lines 2 and 4 with closing braces on lines 8 and 9.
- Values with long text must be included on one line. If multi-lines are needed in the text display the HTML code (br> can be used but the whole text itself must be on one line (i.e., "This is a long line.<br>Followed by another long line.")
- The whole of the file content must also be enclosed in matching braces as shown in lines 1 and 10.
The files discussed in this area are included in the assets/json folder.
County_master.json - This file establishes the county name and the base color used by the system.
- The name of remaining files discussed must begin with the "name" value of this file (e.g., "Delta").
- The color value are used to establish the base color for the site. The hsl-hue, hsl-sat, and hsl-lit values are, as the name implies the values of the color as expressed in the hsl color value (i.e., hsl(277, 19%, 50%). Do not include the percent sign ( % ) in the file.
- NO NOT CHANGE THE NAME OF THE FILE.
{
"county": {
"name": "Delta",
"color": {
"hsl-hue": 277,
"hsl-sat": 19,
"hsl-lit": 50
}
}
}
No Comments