HAI everybody,
``
I am working on a Google API to obtain the contacts of users at my website, and I obtained a result using like this, but I wish wish to have the contacts out of the whole chunk.

I just wanna know , how can I parse values from here ??

this is the my json retrun value.
how to convert php html template formate

$.ajax({
                url: 'https://www.google.com/m8/feeds/contacts/default/full',
                dataType: 'jsonp',
                data: authParams,
                success: function(data) 
                {   

                alert(JSON.stringify(data));

                }

{"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gContact":"http://schemas.google.com/contact/2008","xmlns$batch":"http://schemas.google.com/gdata/batch","xmlns$gd":"http://schemas.google.com/g/2005","id":{"$t":"vksuriya2007@gmail.com"},"updated":{"$t":"2013-03-28T02:20:06.137Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://schemas.google.com/contact/2008#contact"}],"title":{"type":"text","$t":"Suriyakala Govindaraj's Contacts"},"link":[{"rel":"alternate","type":"text/html","href":"http://www.google.com/"},{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://www.google.com/m8/feeds/contacts/vksuriya2007%40gmail.com/full"},{"rel":"http://schemas.google.com/g/2005#post","type":"application/atom+xml","href":"https://www.google.com/m8/feeds/contacts/vksuriya2007%40gmail.com/full"},{"rel":"http://schemas.google.com/g/2005#batch","type":"application/atom+xml","href":"https://www.google.com/m8/feeds/contacts/vksuriya2007%40gmail.com/full/batch"},{"rel":"self","type":"application/atom+xml","href":"https://www.google.com/m8/feeds/contacts/vksuriya2007%40gmail.com/full?alt=json&max-results=25"},{"rel":"next","type":"application/atom+xml","href":"https://www.google.com/m8/feeds/contacts/vksuriya2007%40gmail.com/full?alt=json&start-index=26&max-results=25"}],"author":[{"name":{"$t":"Suriyakala Govindaraj"},"email":{"$t":"vksuriya2007@gmail.com"}}],"generator":{"version":"1.0","uri":"http://www.google.com/m8/feeds","$t":"Contacts"},"openSearch$totalResults":{"$t":"386"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"25"},"entry":[{"id":{"$t":"http://www.google.com/m8/feeds/contacts/vksuriya2007%40gmail.com/base/42e4650d6a1f2b"},"updated":{"$t":"2010-12-14T15:51:49.592Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://schemas.google.com/contact/2008#contact"}],"title":{"type":"text","$t":""},"link":[{"rel":"http://schemas.google.com/contacts/2008/rel#edit-
Member Avatar for LastMitch

how to convert jquery success json stringify xml data to php html template

You have to rewrite the json stringify xml with php code.

You can't convert json stringify xml data into php code.

You can combine json stringify xml with php code.

how to combine json stringify xml with php code
plz help me.

i want to email and name.
i tried to fetch alert(JSON.Stringify(data.name));
but disply alert box undefiend.
how to fetch

hai i want to how to read xml data to javascript?plz help me.

Hi
Please try this using php Its work for all.

<?php
    $req = new Google_HttpRequest("https://www.google.com/m8/feeds/contacts/default/full?alt=json&max-results=100&v=3.0");
    $val = $client->getIo()->authenticatedRequest($req);

    $temp = json_decode($xmlresponse,true);
    foreach($temp['feed']['entry'] as $entry) 
    {
        echo $cnt['title']['$t'] . " --- " . $cnt['gd$email']['0']['address'] . "</br>";
    }
    //echo "<pre>";print_r($temp);// Print all the field
?>

You can get all the field.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.