Fix json parsing on frontend side.