Replies: 2 comments 4 replies
-
I do indeed remember that. It was in a gitter conversation. I'd say at a minimum we'd need something which has a C interface, and is supported by FreeBSD ports, and Debian/Ubuntu (for the CI), and probably CentOS too. So that give us these possibilities:-
It's a simplistic analysis, and could do with some checking, but that gives us I've not looked at either library yet. It's worth noting however than on a CentOS VM I've just run up for something else, json-c is required by systemd. So I'd say that's a solid choice as it's not going anywhere at present. Looking elsewhere, it's the only option on Slackware, which tends to be the hardest distribution for us to support. There's a couple of caveats about using JSON which have occurred to me since our conversation.
I don't think any of these is a show-stopper. Performance isn't an issue for this interface. I think the important thing is to make sure at the application level, this is a wrapped interface, at least initially so that if we've made a wrong decision it's easy to back it out. Later on, when the interfaces are stable, we can publish them and maybe move the utilities to using a scripting language with JSON support. |
Beta Was this translation helpful? Give feedback.
-
My company is making a proprietary extension of xrdp that uses JSON. Recently, I mostly spend time on that. In the extension, I decided to Jansson so I'd appreciate it if you choose Jansson when mainline xrdp goes to SCPv2. |
Beta Was this translation helpful? Give feedback.
-
I remember I had a talk with @matt335672 that in the context of sesman. It was a suggestion to switch communication between xrdp to sesman to JSON based new protocol. Do you remember it?
So, what is the best/better JSON library do you think?
Beta Was this translation helpful? Give feedback.
All reactions