Added postJSON function and JSONPostRequest RequestType.