UNPKG

fracturedjsonjs

Version:

JSON formatter that produces highly readable but fairly compact output

20 lines (19 loc) 621 B
/** * Instructions on what to do about comments found in the input text. According to the JSON standard, comments * aren't allowed. But "JSON with comments" is pretty wide-spread these days, thanks largely to Microsoft, * so it's nice to have options. */ export declare enum CommentPolicy { /** * An exception will be thrown if comments are found in the input. */ TreatAsError = 0, /** * Comments are allowed in the input, but won't be included in the output. */ Remove = 1, /** * Comments found in the input should be included in the output. */ Preserve = 2 }