Raw output is not a correct json.

Author: mdtrooperCreated Nov 15, 2024Updated Dec 27, 2025

I am working in a project from hell that it has a huge redux store and I have tried to copy the copy the store content from Raw to parse with jq, but it fails because the json from Raw is not a correct json.

This is a chunk of my huge redux store:

{
  setting: {
    'ui.resource.download.enable': {
      defaultState: 'false',
      state: 'false',
      error: null,
      status: 'new',
      requests: []
    }
  },
  serverState: {
    info: {
      name: 'FOOBAR',
      version: 'FOOBAR',
      versionType: 'FOOBAR',
      buildDate: 'FOOBAR',
      commit: 'FOOBAR',
      branch: 'FOOBAR'
    }
  },
  coreModuleState: {
    module: 'Core application',
    tabsState: {
      currentTab: 'FOOBAR'
    }
  },

....

And you can see the key for the first branches of json is without double quotes, or the strings have a single quote instead the double quote.