Ok, got it now...
The ajax request should have a type "application/json" and not the default jQuery one "application/x-www-form-urlencoded" and the data must be passed as a string, i.e.
$.ajax({
type: "POST",
url: addr,
data: JSON.stringify({"hello":{"cruel":"world"}}),
contentType: "application/json"
})