Functional json loader