renamed jsonArrayName to variableName