return object rather than json string