diff options
author | Colin Okay <okay@toyful.space> | 2022-02-15 16:10:08 -0600 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2022-02-15 16:10:08 -0600 |
commit | 06ec0ee02e52321095a07eecd6d7b6ffcb6bd237 (patch) | |
tree | 2818d5f6aa619e915ec5df090f0b585f821cb60e | |
parent | 59c98410fcc7576681b605b3cce95335f6bf9b28 (diff) |
changed json serialization of oneliner instances
-rw-r--r-- | src/main.lisp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main.lisp b/src/main.lisp index ca44e96..b05d7bc 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -122,16 +122,16 @@ flagged-by audited-by lockedp) instance (json:with-object - (json:write-key-value "id" db::id) - (json:write-key-value "oneliner" oneliner) - (json:write-key-value "tags" tags) - (json:write-key-value "brief" brief) - (json:write-key-value "description" description) - (json:write-key-value "createdAt" created-at) - (json:write-key-value "editedAt" (if edited-at edited-at :null)) - (json:write-key-value "createdBy" (contributor-handle created-by)) - (json:write-key-value "isFlagged" (if (not (null flagged-by)) t :false)) - (json:write-key-value "isLocked" (if lockedp t :false))))) + (json:write-key-value :id db::id) + (json:write-key-value :oneliner oneliner) + (json:write-key-value :tags tags) + (json:write-key-value :brief brief) + (json:write-key-value :description description) + (json:write-key-value :createdAt created-at) + (json:write-key-value :editedAt (if edited-at edited-at :null)) + (json:write-key-value :createdBy (contributor-handle created-by)) + (json:write-key-value :isFlagged (if (not (null flagged-by)) t :false)) + (json:write-key-value :isLocked (if lockedp t :false))))) |