make json parsing a bit more verbose
"params" are always optional (in terms of json parsing)