Python Create Json Array Javascript Splice Example