Forum Discussion
akidave
5 years agoEmployee
If the expression library file contains data, it can be written as a JSON file also. Instead of writing
{
a: 1,
b: 2
}
you could write
{
"a": 1,
"b": 2
}
The second format is valid JSON and the JSON parser snap will be able to read the expression library file. If the expression library has functions, then it will not be valid JSON. One workaround would be to separate data into one expression library file and functions into another file. The validation can be performed on the first file. The overlay feature can be used to combine the two files into one during the pipeline execution.