add POST method to support JSON process