before trying to make json dump