Skip to content
Merged

2.18 #903

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.fasterxml.jackson.module.kotlin.test.github

import com.fasterxml.jackson.annotation.JsonPropertyOrder
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.ObjectMapper
Expand Down Expand Up @@ -41,6 +42,20 @@ class Github464 {
fun <T> getXyzzy() = quux
}

@JsonPropertyOrder(
"foo",
"bar",
"baz",
"qux",
"quux",
"corge",
"grault",
"garply",
"waldo",
"fred",
"plugh",
"xyzzy"
)
class Poko(
val foo: ValueClass,
val bar: ValueClass?,
Expand Down Expand Up @@ -106,8 +121,8 @@ class Github464 {
"1" : null,
"null-key" : null
},
"xyzzy" : 0,
"plugh" : 0
"plugh" : 0,
"xyzzy" : 0
}
""".trimIndent(),
writer.writeValueAsString(target)
Expand Down Expand Up @@ -142,8 +157,8 @@ class Github464 {
"1" : "null-value",
"null-key" : "null-value"
},
"xyzzy" : 0,
"plugh" : 0
"plugh" : 0,
"xyzzy" : 0
}
""".trimIndent(),
writer.writeValueAsString(target)
Expand Down