{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "patternProperties": {
        "^[0-9a-zA-Z_-]{1,255}$": {
            "type": "object",
            "properties": {
                "value": {
                    "type": [
                        "number",
                        "string",
                        "boolean"
                    ]
                },
                "time": {
                    "oneOf": [
                        {
                            "type": "string"
                        },
                        {
                            "type": "number"
                        },
                        {
                            "type": "object",
                            "properties": {
                                "$date": {
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false,
                            "required": [
                                "$date"
                            ]
                        }
                    ]
                }
            }
        }
    },
    "additionalProperties": false
}