How to access field names with special character

Hi,

I’m currently having a problem getting the field name from this:

dekningMedieArray[i].12-19

this is caused because of the MINUS between the numbers, would I have to change the field name to access its contents, or is there a workaround?

thanks

You can use bracket notation for property names with special characters.

array[i]['12-19']