mms on Nostr: Elisp dumb question: how do I append a plist to a list? I have a json file, which I ...
Elisp dumb question: how do I append a plist to a list?
I have a json file, which I read via json-read-file. I then have a plist. I want to add the plist as element to the list so after I save it back to json, the plist becomes a json object.
(append list plist) flattens
(append list '(plist)) ppends string "plist" ;)
Published at
2025-03-06 20:54:28Event JSON
{
"id": "7099fd15f6490388ebcd1e4c4866707fdfb57a42e28fa1d2bef537f1e0f319dc",
"pubkey": "0bed2b90b36ec37a31740d92bb43ad71d65f55872b9154f7036ad1f2ffc9f6c1",
"created_at": 1741294468,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.bsd.cafe/users/mms/statuses/114117474281270305",
"activitypub"
]
],
"content": "Elisp dumb question: how do I append a plist to a list?\n\nI have a json file, which I read via json-read-file. I then have a plist. I want to add the plist as element to the list so after I save it back to json, the plist becomes a json object. \n\n(append list plist) flattens\n(append list '(plist)) ppends string \"plist\" ;)",
"sig": "4f440efe341c19433187a57ad2c25f1192caaaa6fdb3ec288441bbc1d35319a71515b28a6b3e59987e610b78b603b3bfb428c52865ecb7c4ab70ad84cc42b25e"
}