Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    You would be better off using a Dictionary or custom type, then serializing to json. Commented Dec 19, 2017 at 14:19
  • 1
    Creating the JSON by hand like this is going be very error-prone, and it won't scale at all. Create and serialize a dictionary like Crowcoder suggested. Commented Dec 19, 2017 at 14:21
  • 1
    (Your attempt to use double quotes is broken because you incorrectly switch to double single-quotes towards the end.) Commented Dec 19, 2017 at 14:22
  • var postData = "{\"changeNumberForClone\":\"C03688051\", \"scheduledStartDate\":\"2017-12-24T11:24:48.91Z\", \"scheduledEndDate\": \"2017-12-25T11:24:48.91Z\"}"; Commented Dec 19, 2017 at 14:23