JsonRemedy.Layer3.SyntaxDetectors (json_remedy v0.1.3)
View SourceSyntax detection and validation functions for Layer 3 syntax normalization.
Contains functions to detect various syntax issues like unquoted keys, trailing commas, missing commas/colons, and other JSON syntax problems.
Summary
Functions
Look for colon after identifier to detect unquoted keys.
Check for missing colons.
Check for missing commas (simplified detection).
Simple heuristic to detect if content has syntax issues (no regex).
Check for trailing commas.
Check for unquoted keys using string analysis.
Functions
@spec find_colon_after_identifier(String.t(), non_neg_integer()) :: {:found, non_neg_integer()} | :not_found
Look for colon after identifier to detect unquoted keys.
Check for missing colons.
Check for missing commas (simplified detection).
Simple heuristic to detect if content has syntax issues (no regex).
Check for trailing commas.
Check for unquoted keys using string analysis.