split JsonFileLoader into JsonParser and FileLoader