Skip to content

Format JSON silently fails when content is not valid JSON #9162

Description

@v-xianya

Storage Explorer Version

1.46.0

Regression From

Not a regression

Architecture

x64

Storage Explorer Build Number

20260821.10

Platform

All

OS Version

Windows 11 arm64/Windows 11 x64/MacOS Tahoe 26.6.2 /Linux Ubuntu 22.04

Bug Description

When previewing a JSON file in Storage Explorer, modifying the file content so that it is no longer valid JSON and then clicking Format JSON does not produce any visible response. The content is not formatted, and no error message, warning, or validation feedback is displayed.

Resource Types

Blobs, ADLS Gen2 blobs, File shares

Authentication Method

None

Connection Type

None

Steps to Reproduce

  1. Launch Storage Explorer.
  2. Expand one storage account -> Blob Containers.
  3. Create a blob container -> Upload one Json file.
  4. Modify the content so that it is no longer valid Json.
  5. Preview the JSON file -> Click Format JSON.
  6. Check the result.

Actual Experience

Clicking Format JSON has no visible effect.
Here is the gif:

Image

Expected Experience

It is better to validate the content before formatting.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚙️ adls gen2Related to hierarchical namespaces (ADLS Gen 2)⚙️ blobsRelated to blob storage⚙️ filesRelated to file storage🧪 testingFound through regular testing

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions