rhalff / dot-object

Transform json objects using dot notation
MIT License
471 stars 46 forks source link

Normalize dot object keys' values #39

Open konstantin-tarasov-clearscale opened 5 years ago

konstantin-tarasov-clearscale commented 5 years ago

Let's assume I receive an object from a server like

{"FieldName.Items[0].Email": ["Invalid email"]};

This library provides a possibility to change values to invalid-email.

May I process keys' values? I'd like to normalize the case of keys to

{
   fieldName: {
      items: [
         email: ["Invalid email"]
      ]
   }
}