{"action":"reopened","issue":{"url":"https://api.github.com/repos/DiUS/pact-jvm/issues/655","repository_url":"https://api.github.com/repos/DiUS/pact-jvm","labels_url":"https://api.github.com/repos/DiUS/pact-jvm/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/DiUS/pact-jvm/issues/655/comments","events_url":"https://api.github.com/repos/DiUS/pact-jvm/issues/655/events","html_url":"https://github.com/DiUS/pact-jvm/issues/655","id":307601625,"number":655,"title":"Order of JSON body properties in generated Pact","user":{"login":"sdulebskiy","id":6367632,"avatar_url":"https://avatars0.githubusercontent.com/u/6367632?v=4","gravatar_id":"","url":"https://api.github.com/users/sdulebskiy","html_url":"https://github.com/sdulebskiy","followers_url":"https://api.github.com/users/sdulebskiy/followers","following_url":"https://api.github.com/users/sdulebskiy/following{/other_user}","gists_url":"https://api.github.com/users/sdulebskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/sdulebskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdulebskiy/subscriptions","organizations_url":"https://api.github.com/users/sdulebskiy/orgs","repos_url":"https://api.github.com/users/sdulebskiy/repos","events_url":"https://api.github.com/users/sdulebskiy/events{/privacy}","received_events_url":"https://api.github.com/users/sdulebskiy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T11:18:45Z","updated_at":"2018-03-22T11:19:07Z","closed_at":null,"author_association":"NONE","body":"Hello! I'm trying to generate an Pact\r\n\r\n```java\r\nfinal DslPart fragment2body = new PactDslJsonBody()\r\n            .stringType(\"checkName\", \"billing_address_missing\")\r\n            .stringType(\"description\", \"Billing address missing\")\r\n            .booleanType(\"enabled\", true)\r\n            .stringType(\"severityLevel\", \"Critical\");\r\n\r\n public RequestResponsePact createFragment2(PactDslWithProvider builder) {\r\n        return builder\r\n                .uponReceiving(\"test\")\r\n                    .method(\"GET\")\r\n                    .matchPath(\"test\")\r\n                .willRespondWith()\r\n                    .status((HttpStatus.SC_OK))\r\n                    .body(fragment2body)\r\n                .toPact();\r\n```\r\n\r\n\r\nAnd i'm getting the following Pact\r\n```javascript\r\n \"response\": {\r\n                \"status\": 200,\r\n                \"headers\": {\r\n                    \"Content-Type\": \"application/json;charset=UTF-8\"\r\n                },\r\n                \"body\": {\r\n                    \"severityLevel\": \"Critical\",\r\n                    \"description\": \"Billing address missing\",\r\n                    \"checkName\": \"billing_address_missing\",\r\n                    \"enabled\": true\r\n                },\r\n                \"matchingRules\": {\r\n ...\r\n\r\n```\r\nWhy properties order in body section has changed?"}}
{"actor":{"display_login":"sdulebskiy"}}