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 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