RHX adlı üyeden alıntı: mesajı görüntüle
Hocam bu şekilde yaptığımda çıktı istediğim formatta olmuyor. İstediğim şablon :

{
    "status": true,
    "category": {
        "ID": 1,
        "title": "title",
        "description": "description"
    },
    "posts": [
        {
            "ID": 1,
            "type": "post",
            "title": "title",
            "content": "content",
            "excerpt": "excerpt",
            "published_at": 1384024870,
            "comments": [

            ]
        },
        {
            "ID": 2,
            "type": "post",
            "title": "title",
            "content": "content",
            "excerpt": "excerpt",
            "published_at": 1384197670,
            "comments": [

            ]
        }
    ]
}
Bu şekilde çıktı alabilir miyiz ? ama
{
            "ID": 2,
            "type": "post",
            "title": "title",
            "content": "content",
            "excerpt": "excerpt",
            "published_at": 1384197670,
            "comments": [

            ]
        }
içinde takrar edecek şekilde ?
JSON sytanx standartlarına göre istemekte olduğunuz yapı uygun değil, kendi veri parser'inizi yazabilirseniz öyle bi' yapıyı kullanabilirsiniz.