JsonRemedy.Layer3.PostProcessors (json_remedy v0.1.3)

View Source

Post-processing functions for Layer 3 syntax normalization.

Handles comma and colon fixes that occur after the main parsing pass, including trailing comma removal, missing comma insertion, and colon addition.

Summary

Functions

Add missing colons in object key-value pairs.

Post-process to handle comma issues (remove trailing, add missing).

Functions

add_missing_colons(content, repairs)

@spec add_missing_colons(String.t(), list()) :: {String.t(), list()}

Add missing colons in object key-value pairs.

post_process_commas(content)

@spec post_process_commas(String.t()) :: {String.t(), list()}

Post-process to handle comma issues (remove trailing, add missing).