Select value in Json with variable

Select value in Json with variable

Hello, I have two variables:  
  1. var idtags = 82;
  2. var default_value = '[{"82":"2"}]';
How can I do to select the value in the json, according to the idtags variable?

Best regards