more elegant GetJson method