jsonbinpack
Version:
A space-efficient schema-driven binary JSON serialization format based on JSON Schema
15 lines (14 loc) • 642 B
JSON
{
"site": "https://eample.com",
"maxAge": 31536000,
"reportUrl": "https://example.com",
"defaultNavBehavior": "block",
"defaultResBehavior": "block",
"rules": [
{ "path": "/", "types": ["navigation"], "allowData": false },
{ "regex": "^/\\d+$", "types": ["navigation"], "allowData": false },
{ "path": "/image", "types": ["image"], "allowData": true },
{ "regex": "^/(scoreboard|random|favorites|recentvisits|create)$", "types": ["navigation"], "allowData": false },
{ "regex": "^/(recent|popular|metrics|template|search)$", "types": ["navigation"], "allowData": true }
]
}