# Class CADBSerialsJSON

java.lang.Object
com.io7m.cardant.database.postgres.internal.CADBSerialsJSON

public final class CADBSerialsJSON extends Object
Functions to serialize/deserialize JSON serial numbers.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static List<CAItemSerial>`
  `serialsFromJSON(org.jooq.JSON json)`
  Convert serial numbers from possibly-nested JSON arrays.
  `static org.jooq.JSON`
  `serialsToJSON(List<CAItemSerial> serials)`
  Convert serial numbers to a JSON array.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### serialsToJSON

    public static org.jooq.JSON serialsToJSON(List<CAItemSerial> serials)
    Convert serial numbers to a JSON array.
    Parameters:
      `serials` - The serial numbers
    Returns:
      The JSON

  - ### serialsFromJSON

    public static List<CAItemSerial> serialsFromJSON(org.jooq.JSON json) throws IOException
    Convert serial numbers from possibly-nested JSON arrays.
    Parameters:
      `json` - The json
    Returns:
      The parsed serial numbers
    Throws:
      `IOException` - On parse errors