replace json with fact object