Skip to content

Raw output is not a correct json. #1789

Open
@mdtrooper

Description

@mdtrooper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions