With jsonx we could have created simple decode/1 function ...