indentJSON

Automatically indent JSON strings, for better readability.

You are now following this Submission

Automatically indent JSON string, with new lines and indentations.
Control the indentation style - depth and character type (tab, space or any other character as you like).

Cite As

Noam Greenboim (2026). indentJSON (https://www.mathworks.com/matlabcentral/fileexchange/167351-indentjson), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2016b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Avoid unnecessary spaces for empty data within square brackets

1.0.0