changed returned json document format