frontend and json parser