Class CADBSerialsJSON
java.lang.Object
com.io7m.cardant.database.postgres.internal.CADBSerialsJSON
Functions to serialize/deserialize JSON serial numbers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CAItemSerial> serialsFromJSON(org.jooq.JSON json) Convert serial numbers from possibly-nested JSON arrays.static org.jooq.JSONserialsToJSON(List<CAItemSerial> serials) Convert serial numbers to a JSON array.
-
Method Details
-
serialsToJSON
Convert serial numbers to a JSON array.- Parameters:
serials- The serial numbers- Returns:
- The JSON
-
serialsFromJSON
Convert serial numbers from possibly-nested JSON arrays.- Parameters:
json- The json- Returns:
- The parsed serial numbers
- Throws:
IOException- On parse errors
-