Encode and decode between %Artefact{} and Arrows JSON.
to_json/1 exports the canonical struct to Arrows JSON for interchange and
visual editing. from_json/2 imports Arrows JSON — for example, from the
Arrows graph editor — back into a struct.
Fields dropped on import (render concerns only):
captionon nodes — no Cypher equivalentstyleat all levels — renderer's responsibility
Summary
Functions
Parse Arrows JSON string into an %Artefact{}. Returns {:ok, artefact} or {:error, reason}.
Parse Arrows JSON string, raising on error.
Encode an %Artefact{} to Arrows JSON string.