Changed JSONPost to match RESTAPI