2010-06-27, 21:38
Fiasco Wrote:in no language!
Some of us have to communicate with xbmc over a raw tcp port.
Read JSONRPC specifications, its nothing weird over a raw tcp port, its just a serialized json following jsonrpc 2.0 spec.
The given script even prints the raw jsonrpc dump. I've written raw jsonrpc dumps in lots of posts in this very thread.
Fiasco Wrote:Would it be possible to have user specified formatting if the output? Say, if user created format file foo doesn't exist output in the default manner?
NO! The whole point of jsonrpc is to stop the user configuration formating nonsense. json is a simple, human readable, standardized serialization of objects. Any programing languages have parsers and generators readily available for you to use. If you need to have a special formating for a closed source product you must create a middleman, its impossible to have configuration to support all and every given products formating.