JsonRemedy.Pipeline (json_remedy v0.1.0)
View SourceStream-based JSON repair pipeline.
This approach processes JSON repair as a stream of transformations, making it suitable for large files or real-time processing. Currently a placeholder for future implementation.
Summary
Functions
Repairs JSON using stream processing approach.
Types
Functions
@spec repair( binary(), keyword() ) :: repair_result()
Repairs JSON using stream processing approach.
Currently delegates to BinaryParser but will be implemented as a proper streaming pipeline in Phase 2.
Parameters
json_string
: The malformed JSON string to repairopts
: Keyword list of options
Returns
{:ok, term()}
if repair succeeds without logging{:ok, term(), [String.t()]}
if repair succeeds with logging enabled{:error, String.t()}
if repair fails
Examples
iex> JsonRemedy.Pipeline.repair(~s|{name: "Alice"}|, [])
{:ok, %{"name" => "Alice"}}