one alternative idea I came up with was to use complete javascript to parse json file but that idea is now scrapped