added .json endpoint to fetch metadata