The method getrawmempool has an optional parameter of type bool with name format. Which specifies: - false: return an array of txids - true: json object describing each transaction It is easy