Initial upload: ConfDoc v0.1.0 - Config validation and documentation generator

This commit is contained in:
2026-01-31 07:10:11 +00:00
parent 4500231bea
commit e7ba441a05

View File

@@ -0,0 +1,18 @@
import json
from typing import Any, Dict
class JsonParser:
"""Parser for JSON configuration files."""
def parse(self, content: str) -> Dict[str, Any]:
"""Parse JSON content into a dictionary."""
return json.loads(content)
def dump(self, data: Dict[str, Any]) -> str:
"""Dump dictionary to JSON string."""
return json.dumps(data, indent=2)
def get_format(self) -> str:
"""Return the format name."""
return "json"