built json and added route /m for exporting to mobile app