Factored out JSON object accessors.