var json = new Function('return [,["user"],,,"",,4,555556,[,,,"",,6,6,"first"]]')(); alert( JSON.stringify( json ) );