
Load colour Definitions from JSON File
load_cols.RdThis function reads a JSON file containing colour definitions and converts them into a named list structure. Each colour group is unlisted to create a flat structure with named elements.
Value
A list where each element represents a colour group from the JSON file, with nested structures flattened into named vectors.
Details
The function uses jsonlite::read_json() to parse the JSON file
and then applies unlist() with use.names = TRUE to each
element to maintain the naming structure while flattening nested lists.