I have an array containing dictionaries. I need to change the value for key "price" to float value with 2 decimal places alone, but the dictionary should remain the same. I tried fetching each price values and replacing them into a mutable array. But I need it in a simpler solution. Thanks in advance.
(
{
pen = {
price = 180.1299;
};
pencil = {
price = 20.1299;
};
},
{
pen = {
price = 111.1267;
};
pencil = {
price = 23.1278;
};
}
)