Adding proper json prerequisites and json dump to add_shares.