Срок работы пробной версии продукта истек. Через две недели этот сайт полностью прекратит свою работу. Вы можете купить полнофункциональную версию продукта на сайте www.1c-bitrix.ru.

Исходный массив PHP

Array
(
    [web] => Array
        (
            [] => Array
                (
                    [chk] => Array
                        (
                            [44] => Array
                                (
                                    [ID] => 44
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [43] => Array
                                (
                                    [ID] => 43
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [41] => Array
                                (
                                    [ID] => 41
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [20] => Array
                                (
                                    [ID] => 20
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [6] => Array
                                (
                                    [ID] => 6
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [4] => Array
                                (
                                    [ID] => 4
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                        )

                    [guest_chk] => Array
                        (
                            [44] => Array
                                (
                                    [ID] => 44
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [43] => Array
                                (
                                    [ID] => 43
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [41] => Array
                                (
                                    [ID] => 41
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [20] => Array
                                (
                                    [ID] => 20
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [6] => Array
                                (
                                    [ID] => 6
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [4] => Array
                                (
                                    [ID] => 4
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                        )

                    [kem_priglashen_chk] => Array
                        (
                            [44] => Array
                                (
                                    [ID] => 44
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [43] => Array
                                (
                                    [ID] => 43
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [41] => Array
                                (
                                    [ID] => 41
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [20] => Array
                                (
                                    [ID] => 20
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [6] => Array
                                (
                                    [ID] => 6
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [4] => Array
                                (
                                    [ID] => 4
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                        )

                    [pl_chk] => Array
                        (
                            [44] => Array
                                (
                                    [ID] => 44
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [43] => Array
                                (
                                    [ID] => 43
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [41] => Array
                                (
                                    [ID] => 41
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [20] => Array
                                (
                                    [ID] => 20
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [6] => Array
                                (
                                    [ID] => 6
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [4] => Array
                                (
                                    [ID] => 4
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                        )

                    [garant_chk] => Array
                        (
                            [44] => Array
                                (
                                    [ID] => 44
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [43] => Array
                                (
                                    [ID] => 43
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [41] => Array
                                (
                                    [ID] => 41
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [20] => Array
                                (
                                    [ID] => 20
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [6] => Array
                                (
                                    [ID] => 6
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                            [4] => Array
                                (
                                    [ID] => 4
                                    [status_result_id] => 10
                                    [status_result_title] => Принят
                                    [family] => 
                                    [name] => 
                                    [sum_debt] => 0
                                    [country] => 
                                    [tel] => 
                                    [email] => 
                                )

                        )

                )

        )

)





Результат - строка JSON

{"web":{"":{"chk":{"44":{"ID":"44","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"43":{"ID":"43","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"41":{"ID":"41","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"20":{"ID":"20","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"6":{"ID":"6","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"4":{"ID":"4","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null}},"guest_chk":{"44":{"ID":"44","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"43":{"ID":"43","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"41":{"ID":"41","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"20":{"ID":"20","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"6":{"ID":"6","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"4":{"ID":"4","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null}},"kem_priglashen_chk":{"44":{"ID":"44","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"43":{"ID":"43","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"41":{"ID":"41","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"20":{"ID":"20","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"6":{"ID":"6","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"4":{"ID":"4","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null}},"pl_chk":{"44":{"ID":"44","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"43":{"ID":"43","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"41":{"ID":"41","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"20":{"ID":"20","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"6":{"ID":"6","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"4":{"ID":"4","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null}},"garant_chk":{"44":{"ID":"44","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"43":{"ID":"43","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"41":{"ID":"41","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"20":{"ID":"20","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"6":{"ID":"6","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null},"4":{"ID":"4","status_result_id":"10","status_result_title":"Принят","family":null,"name":null,"sum_debt":0,"country":null,"tel":null,"email":null}}}}}