Getting MalFormedURLExemption - loadjson() method

MY SCRIPT:

var validPropState = false;
var propState = record.fields.PROPERTYSTATE;
var states = loadjson(“file:///c:/output/states.json”);

JSON FILE:

{“states”:[ “HI”, “NC”, “NY” , “OR”, “TX”]}

Hi Andrew,

Works fine for me using the below code.

var json_states = loadjson(“file:///C:/Out/samplejson.json”);

results.html(json_states.states);

Regards,

S

Hi Andrew,

I’ve couldn’t reproduce it. Attached my template (created in v1.6). It contains a script for a local and external snippet.

Erik

https://learn.objectiflune.com/qa-blobs/7887385441399912483.ol-template