Fix load API with JSON - #379