[SPARKL-73] - Fixed roles parameter to encode arrays as a JSON string