aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/meta/conf_make_meta_json.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-02-28 17:18:16 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitc3a2508f2acfdffbde46e237071c9775ce2ff519 (patch)
treeb79a5f8aa92b2d642a017ff4091e7ba343773bb2 /src/sdp/meta/conf_make_meta_json.d
parent(header, doc make, config) add checks to toml (diff)
header make unmarked headings
Diffstat (limited to 'src/sdp/meta/conf_make_meta_json.d')
-rw-r--r--src/sdp/meta/conf_make_meta_json.d12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/sdp/meta/conf_make_meta_json.d b/src/sdp/meta/conf_make_meta_json.d
index 2ccf2c3..916dd33 100644
--- a/src/sdp/meta/conf_make_meta_json.d
+++ b/src/sdp/meta/conf_make_meta_json.d
@@ -71,7 +71,17 @@ static template contentJSONtoSiSUstruct() {
if ("headings" in _json.object["make"]
&& (_json.object["make"]["headings"].type().to!string == "STRING")
) {
- _struct_composite.make_str.headings = _json.object["make"]["headings"].str;
+ char[][] __match_headings_array
+ = (cast(char[]) _json.object["make"]["headings"].str)
+ .split(_rgx.make_heading_delimiter);
+ _struct_composite.make_str.headings = __match_headings_array.to!(string[]);
+ } else if ("headings" in _json.object["make"]
+ && _json.object["make"]["headings"].type().to!string == "ARRAY") {
+ string[] _match_headings_array;
+ foreach (_match_heading; _json.object["make"]["headings"].arrayNoRef) {
+ _match_headings_array ~= _match_heading.str;
+ }
+ _struct_composite.make_str.headings = _match_headings_array;
}
if ("home_button_image" in _json.object["make"]
&& (_json.object["make"]["home_button_image"].type().to!string == "STRING")