handle JSON post requests nicer