I am currently seeking a method to store predefined values in a separate file for populating my function:
Here is my function in index.js:
const Modes = (array) => {
return {
name: array.name,
funcionarioIncrease: array.funcionarioValor,
socioIncrease: array.socioValue,
faturamento: array.faturamento
}
}
This is my schema.json file:
{
"name": "SIMPLES NACIONAL – MEI", "funcionarioIncrease": 49.99,
"socioIncrease": 0,
"FATURAMENTO": [
{
"name": "ATÉ 30.000,00",
"value": 149.99
},
{
"name": "De 30.001,00 a 50.000,00 ",
"value": 199.90
} ]
}
However, I am uncertain about the correct approach and whether using .json files is appropriate.