json parsing hooked up to backend