I wanted to change the value of json lottie files to a new value using the API. This is the code that was found for this, but it did not work. Thanks for any help.
import LottieWebParser from 'lottie-web-parser';
import animationData from './data.js';
let colorInfo = LottieWebParser.parseColors(animationData);
LottieWebParser.replaceColor([255, 0, 0, 1], colorInfo[0].path, animationData);