adds json endpoint for opportunities