play-json-dereived-codecs

Ordering of Fileds on the Generated JSON using Play JSON Derived Codecs

冷暖自知 提交于 2019-12-11 15:10:07
问题 To solve one of my complex case classes to JSON mapping, I used the play json dereived codecs library. It works and produces the JSON structure that I want, but the order in which the elements are present in the JSON is nos something that I would want! For example., here is my case class: case class DataSetMetaData( dataSetWriterId: Int, dataTypeSchemaHeader: DataTypeSchemaHeader, name: String, description: LocalizedText, fields: Seq[FieldMetaData], dataSetClassId: UUID, configVersion: