allow writing array w/o json, and setting result object key