Uploaded image for project: 'Scala Couchbase Client'
  1. Scala Couchbase Client
  2. SCBC-126

Add JsonProperty-style mapping for case class conversions

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • 1

    Description

      E.g. something like:

      case class AnalyticsDataset(@JsonProperty("DatasetName") name: String)
      

      • so the underlying JSON field is named DatasetName, but it's copied into the name field in the case class.

      A 3rd-party library (the Scala extensions for Jsoniter) is currently used for case class encoding.  It doesn't seem to support this out of the box, so may have to look at alternatives (most likely upickle or Jackson).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            graham.pople Graham Pople
            graham.pople Graham Pople
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty