<?php

return [
    'complex_array' => [
        '/-1,/-2' => [],
        '/-/id,/-/batters/batter/-/type' => [
            'id' => ['0001', '0002', '0003'],
            'type' => ['Regular', 'Chocolate', 'Blueberry', "Devil's Food", 'Regular', 'Regular', 'Chocolate'],
        ],
        '/-/name,/-/topping/-/type,/-/id' => [
            'id' => ['0001', '0002', '0003'],
            'name' => ['Cake', 'Raised', 'Old Fashioned'],
            'type' => ['None', 'Glazed', 'Sugar', 'Powdered Sugar', 'Chocolate with Sprinkles', 'Chocolate', 'Maple', 'None', 'Glazed', 'Sugar', 'Chocolate', 'Maple', 'None', 'Glazed', 'Chocolate', 'Maple'],
        ],
        '/-/batters/batter/-,/-/name' => [
            'name' => ['Cake', 'Raised', 'Old Fashioned'],
            0 => [
                [
                    "id" => "1001",
                    "type" => "Regular",
                ],
                [
                    "id" => "1001",
                    "type" => "Regular",
                ],
                [
                    "id" => "1001",
                    "type" => "Regular",
                ],
            ],
            1 => [
                [
                    "id" => "1002",
                    "type" => "Chocolate",
                ],
                [
                    "id" => "1002",
                    "type" => "Chocolate",
                ],
            ],
            2 => [
                "id" => "1003",
                "type" => "Blueberry",
            ],
            3 => [
                "id" => "1004",
                "type" => "Devil's Food",
            ],
        ],
    ],
    'complex_object' => [
        '/-1,/-2' => [],
        '/id,/batters/batter/-/type' => [
            'id' => '0001',
            'type' => ['Regular', 'Chocolate', 'Blueberry', "Devil's Food"],
        ],
        '/name,/topping/-/type,/id' => [
            'id' => '0001',
            'name' => 'Cake',
            'type' => ['None', 'Glazed', 'Sugar', 'Powdered Sugar', 'Chocolate with Sprinkles', 'Chocolate', 'Maple'],
        ],
        '/batters/batter/-,/type' => [
            'type' => 'donut',
            [
                "id" => "1001",
                "type" => "Regular",
            ],
            [
                "id" => "1002",
                "type" => "Chocolate",
            ],
            [
                "id" => "1003",
                "type" => "Blueberry",
            ],
            [
                "id" => "1004",
                "type" => "Devil's Food",
            ],
        ],
        '/batters/batter,/topping' => [
            'batter' => [
                [
                    "id" => "1001",
                    "type" => "Regular",
                ],
                [
                    "id" => "1002",
                    "type" => "Chocolate",
                ],
                [
                    "id" => "1003",
                    "type" => "Blueberry",
                ],
                [
                    "id" => "1004",
                    "type" => "Devil's Food",
                ],
            ],
            'topping' => [
                [
                    "id" => "5001",
                    "type" => "None",
                ],
                [
                    "id" => "5002",
                    "type" => "Glazed",
                ],
                [
                    "id" => "5005",
                    "type" => "Sugar",
                ],
                [
                    "id" => "5007",
                    "type" => "Powdered Sugar",
                ],
                [
                    "id" => "5006",
                    "type" => "Chocolate with Sprinkles",
                ],
                [
                    "id" => "5003",
                    "type" => "Chocolate",
                ],
                [
                    "id" => "5004",
                    "type" => "Maple",
                ],
            ],
        ],
    ],
    'empty_array' => [
        '/-1,/-2' => [],
        '/foo,/bar' => [],
    ],
    'empty_object' => [
        '/-1,/-2' => [],
        '/foo,/bar' => [],
    ],
    'simple_array' => [
        '/-1,/-2' => [],
        '/0,/1' => [0 => 1, 1 => ''],
        '/1,/0' => [0 => 1, 1 => ''],
        '/0,/2' => [0 => 1, 2 => 'foo'],
        '/2,/3' => [2 => 'foo', 3 => '"bar"'],
        '/3,/4,/5' => [3 => '"bar"', 4 => 'hej då', 5 => 3.14],
        '/4,/5,/3' => [3 => '"bar"', 4 => 'hej då', 5 => 3.14],
        '/6,/7,/8,/9' => [6 => false, 7 => null, 8 => [], 9 => []],
        '/9,/8,/7,/6' => [6 => false, 7 => null, 8 => [], 9 => []],
    ],
    'simple_object' => [
        '/-1,/-2' => [],
        '/int,/empty_string' => ['int' => 1, 'empty_string' => ''],
        '/empty_string,/int' => ['int' => 1, 'empty_string' => ''],
        '/string,/escaped_string,/\"escaped_key\"' => ['string' => 'foo', 'escaped_string' => '"bar"', '"escaped_key"' => 'baz'],
        '/unicode,/bool,/empty_array' => ['unicode' => "hej då", 'bool' => false, 'empty_array' => []],
        '/,/a~1b,/c%d,/e^f,/g|h,/i\\\\j' => ['' => 0, 'a/b' => 1, 'c%d' => 2, 'e^f' => 3, 'g|h' => 4, 'i\\j' => 5],
        '/k\"l,/ ,/m~0n' => ['k"l' => 6, ' ' => 7, 'm~n' => 8],
    ],
];
