Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Database 如何在Feedzilla API中解析JSON_Database_Json_Parsing_Feedzirra - Fatal编程技术网

Database 如何在Feedzilla API中解析JSON

Database 如何在Feedzilla API中解析JSON,database,json,parsing,feedzirra,Database,Json,Parsing,Feedzirra,您好,我正在为JASON格式的数据访问开发FeedZilla API。我收到了回复,但无法显示。这是我的密码 <script type="text/javascript"> $(document).ready(function() { $.ajax({ //url:"http://api.feedzilla.com/v1/categories/26/articles/search.json?q=Michael",

您好,我正在为JASON格式的数据访问开发FeedZilla API。我收到了回复,但无法显示。这是我的密码

<script type="text/javascript">
    $(document).ready(function() 
    {
        $.ajax({
                //url:"http://api.feedzilla.com/v1/categories/26/articles/search.json?q=Michael",
                url:"http://api.feedzilla.com/v1/categories/26/articles.json",
                type:'GET',
        //      data:'value='+value+'/'+sid,
                dataType:'json',

                       error: function()
                {
                    alert('Error loading Data.');
                    //LOADER.hide(2000);
                },

                success: function(rs)
                {
                     jQuery("#unclockcodersource").html(Object(url));
                     //LOADER.hide(2000);

                } 
             });
    });
</script>
<div id="unclockcodersource"></div>

$(文档).ready(函数()
{
$.ajax({
//url:“http://api.feedzilla.com/v1/categories/26/articles/search.json?q=Michael",
url:“http://api.feedzilla.com/v1/categories/26/articles.json",
类型:'GET',
//数据:'value='+value+'/'+sid,
数据类型:'json',
错误:函数()
{
警报(“加载数据时出错”);
//装载机.隐藏(2000年);
},
成功:功能(rs)
{
jQuery(“#unlockCoderSource”).html(对象(url));
//装载机.隐藏(2000年);
} 
});
});
我想显示此数据并将数据保存在数据库中。

试试看

jQuery(“unlockCoderSource”).text(rs)


尝试从JSON获取特定属性

否则

    success: function(rs)
    {
        $.each(rs.articles, function(index, ele){
            alert(this.author);
        });
    }
    success: function(rs)
    {
        $.each(rs.articles, function(index,ele){
            alert(ele.author);
        });
    }