I’m trying to create a JSONB object from two array (retrieved from a previous select). One is of type
string (keys), the other is
float (values). However
jsonb_object required two text arrays.
How can I create a JSONB object given these circumstances, without loosing the float type information? In other words, how do I go from here:
["key1", "key2"] and
[10, 5], to there:
Thank you in advance!