Text array record creation quotes

Is this expected behaviour?
If I create a new record through the API where I have a column which is a text array, and I pass ['test'] as a value, in the DB I end up with {"\"test\""} rather than {"test"}.
When I then fetch back through the API I get ['"test"'].