``JSON.parse`` is not really needed here. Passing JSON encoded array is enough.