Using internal json methods