Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/utils / lib / getJsonParsedValue.js
Size: Mime:
// if the value is a possible (JSON string) then we need to parse it to JS object, if not and it's a real string or other type then return it.
var getJsonParsedValue = function getJsonParsedValue(value) {
  var parsedValue = value;
  if (typeof parsedValue === 'string') {
    try {
      parsedValue = JSON.parse(parsedValue);
    } catch (e) {}
  }
  return parsedValue;
};
export default getJsonParsedValue;