doulos05

Serializing Objects

Jan 5th, 2022
2,982
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.46 KB | None | 0 0
  1. (add-project :description "Test Project" :area-of-focus "Project Development")
  2.  
  3. (cl-json:with-object ()
  4.   (cl-json:encode-object-member "uuid" (format nil "~a" (uuid p)))
  5.   (cl-json:encode-object-member "slug" (slug p))
  6.   (cl-json:encode-object-member "description" (description p))
  7.   (cl-json:encode-object-member "areaOfFocus" (area-of-focus p))
  8.   (cl-json:encode-object-member "tags" (tags p))
  9.   (cl-json:encode-object-member "inheritTags" (inherit-tags p)))
Advertisement
Add Comment
Please, Sign In to add comment