Hi Brian,
I'm sure it would be relatively easy to do as an extension but I can hardly believe that it doesn't already exist natively in Wappler (that primarily works on JSON)
I have some files that I use as the basis of standard lists that often do the translation from codes to human-friendly or populate select inputs etc. Mostly this is on the front-end and the JSON AC component works. There are, however, times when I want to access the same lists server-side e.g. when using data to generate emails/notifications that need to be human-friendly (it is possible but fiddly to use the API step for this). I also have some cases where I want to have lists, for similar code translations, that are server-side only without placing the json file in a publicly accessible folder - this is not possible using the API step
e.g.
"enquiryheats": [
{
"code": "0",
"desc": "None (0% - Make the enquiry 'Lost')",
"color": "rgba(173,49,158,0.5)"
},
{
"code": "20",
"desc": "Little chance (0-20%)",
"color": "rgba(79,84,146,0.5)"
},
{
"code": "40",
"desc": "Low chance (20-40%)",
"color": "rgba(79,137,146,0.5)"
},
{
"code": "60",
"desc": "Moderate (40-60%)",
"color": "rgba(255,193,7,0.5)"
},
{
"code": "80",
"desc": "Highly possible (60-80%)",
"color": "rgba(255,121,7,0.5)"
},
{
"code": "100",
"desc": "Certain (80-100%)",
"color": "rgba(220,53,69,0.5)"
}
],
"countries": [
{
"code": "GB",
"desc": "United Kingdom"
},
{
"code": "AF",
"desc": "Afghanistan"
},
{
"code": "AL",
"desc": "Albania"
},
{
"code": "DZ",
"desc": "Algeria"
},
{
"code": "AS",
"desc": "American Samoa"
}
// shortened for posting
]