serve: use json from flask