how to push into json

how to push into json

BY 27 Oct 2013 Web Application Development

Hi all!

I have little problem with json.

I have a json file.It’s looks like:

{
    "items":
    [
        {
            "title":"some title",
            "url":"some url"
        }    
    ]
    
}

How can I add some data to the json? For example, it should looks like:

{
    "items":
    [
        {
            "title":"some title",
            "url":"some url"
        },
        {
            "title":"other title",
            "url":"other url"
        }
    ]
}

Thanks

Written by