let myCustomIndex = listOfResults.reduce((i, r) => {
i[r.pk] = r;
return i;
}, {});
In general we call serialization "serialization" because we put things in serial order and send that sequence over the wire. You can't send maps over the wire. A map is a structure in memory optimized for direct access and modification. While JSON maps (objects) are just sequences of keys and vals, encoded as text, not an actual hashmap or a b-tree, as we surely understand.So you may as well save the redundancy and send a list of results, then format and index it however you please locally.
The fact JSON has maps (objects) at all is a lot less useful than people realize. It's mostly useful for the purpose of denoting "that's a key" and "that's a value". But actually all the work is done after the JSON is being read. You can just as easily send a "map" like this:
["key1", "val1", "key2", "val2", ...]