JavaScript Deterministic Mapping -- a JSON subset