lib: enforce versioned POST messages in `call_json`