Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

2 of 2
Commonmark migration

You could use jquery's parseJSON() function.

var str = '["5703","5704"]';
var parsed = $.parseJSON( str );

The parsed object now contains the array: ["5703","5704"]

Reference - jQuery.parseJSON( json )

"Takes a well-formed JSON string and returns the resulting JavaScript object."

Lix
  • 48.2k
  • 12
  • 107
  • 134

AltStyle によって変換されたページ (->オリジナル) /