Say we have this JSON string:
const v = `{"foo":"bar"}`;
is there a way to configure parsing with JSON.parse so that a field gets renamed, for example capitalizing the field name:
const parsed = JSON.parse(v, captitalize);
console.log(parsed); // => {Foo: "bar"}
or some way to transform the field names, depending on which field you are working with?