Fixes .json issue

Replaces function instance with function call directly