fixed deprecated generate_json dependency