added support for parallel dispatch in the JSON protocol