File Exchange

image thumbnail


version 1.0.1 (167 KB) by Mango Feng
Remove comments and tail comma for a json string for matlab to decode.


Updated 17 Apr 2019

GitHub view license on GitHub

Remove comments and tail comma of a json string. Example:
json string with comments and tail comma
/* comments
"a": 1, // comments
remove comments and tail comma
"a": 1

To remove comments and tail comma, call function as
output_string = MgRemoveJsoncComments(input_string);

Cite As

Mango Feng (2019). matlab_jsonc (, GitHub. Retrieved .

Comments and Ratings (0)



Revise typo.

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor