pass train json to initializer