Stopped counting the days, doesn't make sense with gaps. Trying to ramp up to many more hours a day. Eventually I will be successful.
Dealt with the "partial configuration" problem mentioned in the last post. Won't post that because it's very custom. I just used a recursive function to parse the JSON and if the key started with a # sign, replaced the value with other JSON.
{ 'key1': 'value1', 'key2': 'value2', '#subconfig' : 'path\to\subconfig' } =>
{ 'key1': 'value1', 'key2': 'value2', 'subconfig' : [ ... ] }
However, I will post a class I wrote to deal with JavaScript type issues. Some basic stuff. Hopefully, it is useful to someone.
Uses the new ES2015 class syntax.
Dealt with the "partial configuration" problem mentioned in the last post. Won't post that because it's very custom. I just used a recursive function to parse the JSON and if the key started with a # sign, replaced the value with other JSON.
{ 'key1': 'value1', 'key2': 'value2', '#subconfig' : 'path\to\subconfig' } =>
{ 'key1': 'value1', 'key2': 'value2', 'subconfig' : [ ... ] }
However, I will post a class I wrote to deal with JavaScript type issues. Some basic stuff. Hopefully, it is useful to someone.
Uses the new ES2015 class syntax.
Comments
Post a Comment