use mantle to parse JSON and make functions simple