Added JSON post method for easy interaction with local server