Fixed calling JSON from static functions