Add JSON reference implementation for metadata loading