这是JSON数据,XML还是其他什么?

时间:2016-08-19 06:29:48

标签: validation

我正在尝试使用Python来解析这些数据,但我不知道这是什么类型的数据。它是从div标签中找到的,它具有“数据绑定”作为属性。

component: {
name: 'product-detail',
params: {
    hasVariants: true,
    name: 'HORSESHOE ARM CHAIR',
    hasCategory: true,
    superCategoryName: 'Furniture',
    categoryDisplayName: 'Living Room',
    categorySlug: 'living-room',
    subcategoryDisplayName: 'Chairs',
    subcategorySlug: 'chairs',
    collection: {
        id: 1045,
        name: 'Van Thiel & Co.',
        description: 'Authentic European antiques are reproduced by seasoned artisans to capture the look of Old World craftsmanship. Every delicious detail - carving or ironwork to painting or patina - is done by hand.',
        isFeatured: true,
        isNew: false,
        image: '/FourHandsMarketplace/media/General/Featured%20Collections/VANTHIEL.jpg?width=500',
        shortDescription: 'Capture the grandness of authentic European antiques, reproduced by seasoned artisans and finished by hand to echo the romantic patina of Old World craftsmanship.\r\n',
        uri: '/collections/van-thiel-co'
    },
    attributes: [{
        id: 559,
        name: 'COVER',
        displayOrder: 30,
        swatches: true,
        values: [{
            id: 13622,
            name: 'SCARECROW BARN',
            displayOrder: 1,
            swatchUrl: '/s3/fhphotos/Y C6517-V6_PRM_1.jpg?width=200&height=200&mode=crop'
        }]       
}
}

1 个答案:

答案 0 :(得分:0)

它与KnockoutJS组件绑定有关,请参阅以下链接:

http://knockoutjs.com/documentation/component-custom-elements.html