quite generic question. without any details on how you use and how things are configured.
Short answer
prettier supports formatting JSON out of the box.
Prettier docs on Configuration overrides
And this seems to work
Looks like you might find answers on a generic support forum like stackoverflowâŚor the prettier ones.
But whereever yoiu ask a question like this you will be asked about details
- Command line or integrated
- Which Editor, How it is installed , your Config filesâŚ
- Whatâs your problem âdoes not seem to workâ is not helpful
- Use case : singe JSON files or embedded content in some other file?
See Requesting Help