On Tue, Jun 23, 2009 at 02:00:41PM -0500, Anthony Liguori wrote:
Avi Kivity wrote:
It looks brittle to me. What if you want to add an array? Some
structure that contains a nested structure?
Can you give me concrete examples?
The typical way this would be handled in an RPC library in C is to
introduce complex types. For instance, you could have a MonitorList and
a corresponding MON_LIST type. FWIW, is there a jsonrpc library for C
that's actually maintained?
this one is mentioned on the website and has been changed recently (may 2009):
http://fara.cs.uni-potsdam.de/~jsg/json_parser/