currently --flatten option works only for `insert` command, it would be cool if it worked for `memory` as well to query nested json