Fixed version of Nizsheanez's json-rpc