solution for 'json api server' using express