JSON to Dynamic Card. Please, help

Someone, please help me to parse the JSON and display result in dynamic card. I struggle for days already to no success.

As I wrote above, I struggle for days to make it. Googled, schmoogled, everything. Help! I have a link to JSON. I can parse data just for one card, but I need 10 to be in vertical scroll.

Why dont you show your blocks and json?

Here is JSON ( 2 “items” objects out of 10 in all ). I need to extract “text” and “url” for every object in the array of 10, and make it a vertical scroll dynamic cards.

{
“response”: {
“count”: 9737,
“items”: [
{
“id”: 66562,
“from_id”: -43280577,
“owner_id”: -43280577,
“date”: 1623819900,
“marked_as_ads”: 0,
“post_type”: “post”,
“text”: “Selamat pagi с любимого острова Бали! :kissing_heart:”,
“attachments”: [
{
“type”: “photo”,
“photo”: {
“album_id”: -7,
“date”: 1623737842,
“id”: 457255629,
“owner_id”: -43280577,
“has_tags”: false,
“access_key”: “92f1acc7cefbcd544d”,
“post_id”: 66562,
“sizes”: [
{
“height”: 130,
“url”: “https://sun9-58.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=116x130&quality=96&sign=6c4b4a0ea9c26dbcb76157326f8c970f&c_uniq_tag=0ZcajrrC2tKVjRydNdSA02Pm2IcPzlEMhUduSAAAB3I&type=album”,
“type”: “m”,
“width”: 116
},
{
“height”: 146,
“url”: “https://sun6-21.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=130x146&quality=96&sign=58d8af950d146781685e86ebb6be0557&c_uniq_tag=w4pBaJCJr5eMSMFvSlTep5CLr-EZLL2lydDdj2jpoXU&type=album”,
“type”: “o”,
“width”: 130
},
{
“height”: 225,
“url”: “https://sun6-21.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=200x225&quality=96&sign=81ad826e2873522deec4dda066892e13&c_uniq_tag=7As7j7QY6HDcw_inwMcA3WrvrcJdYIJqhWRx0ufPaYk&type=album”,
“type”: “p”,
“width”: 200
},
{
“height”: 360,
“url”: “https://sun6-21.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=320x360&quality=96&sign=67daa7900ea9e02792d602c13d31c874&c_uniq_tag=H0q6GQWeqcHYXj5Tt-v1arrJMGY2BJ_oXvRIKqSWmqE&type=album”,
“type”: “q”,
“width”: 320
},
{
“height”: 573,
“url”: “https://sun6-21.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=510x573&quality=96&sign=afa45cfd5a964cbf65058db2258e2e97&c_uniq_tag=XsZbrDmrJONTOW_IE2rRG41tn_qx4xOSzTfC4rYIGpw&type=album”,
“type”: “r”,
“width”: 510
},
{
“height”: 75,
“url”: “https://sun9-58.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=67x75&quality=96&sign=9da1e7ea42c3ad74d59fe800b706f9ae&c_uniq_tag=Tq_41Qj428rABB6DqSVyqV0ZdLXZYvJWZKMZEBpdXtc&type=album”,
“type”: “s”,
“width”: 67
},
{
“height”: 604,
“url”: “https://sun9-58.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=538x604&quality=96&sign=100d14cd28571fafa5497bebef762113&c_uniq_tag=cqWwZJRZ5P-Gpz3naWk6qvR1fiQq9fvzQtJHGAhoGJU&type=album”,
“type”: “x”,
“width”: 537
},
{
“height”: 807,
“url”: “https://sun9-58.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=718x807&quality=96&sign=e0c04af0686996f21dcea1d2625f3694&c_uniq_tag=mHDS5nwa-IrI7Z3nVjvLfX2--ymI-gRX_w5Wo31G_-U&type=album”,
“type”: “y”,
“width”: 718
},
{
“height”: 928,
“url”: “https://sun6-21.userapi.com/impg/FcC-0V4ncg_ahwBRIdf7riTpx4nR44p7j8oK0g/VR1zsnoKfKc.jpg?size=826x928&quality=96&sign=4f3e470362d5de1dac8b3acd69def19d&c_uniq_tag=e2cSU8cVRPLwrJhqFsYJZ86rO_Tg1vd-MiixwO4giGw&type=album”,
“type”: “z”,
“width”: 826
}
],
“text”: “”,
“user_id”: 100
}
}
],
“post_source”: {
“type”: “vk”
},
“comments”: {
“count”: 1,
“can_post”: 1,
“groups_can_post”: true
},
“likes”: {
“count”: 72,
“user_likes”: 0,
“can_like”: 1,
“can_publish”: 1
},
“reposts”: {
“count”: 2,
“user_reposted”: 0
},
“views”: {
“count”: 1530
},
“donut”: {
“is_donut”: false
},
“short_text_rate”: 0.8
},
{
“id”: 66560,
“from_id”: -43280577,
“owner_id”: -43280577,
“date”: 1623809100,
“marked_as_ads”: 0,
“post_type”: “post”,
“text”: “Доброе утро #Бали! :heart:”,
“attachments”: [
{
“type”: “photo”,
“photo”: {
“album_id”: 162945341,
“date”: 1604565293,
“id”: 457253930,
“owner_id”: -43280577,
“has_tags”: false,
“access_key”: “3350226e7bda8e3da1”,
“sizes”: [
{
“height”: 130,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=104x130&quality=96&sign=fb66fc75ac9f6407216e3a796a3ed60c&c_uniq_tag=lkmV80OaA4djwLar5qt-BI4QzNpNnIxCXleEErVby9g&type=album”,
“type”: “m”,
“width”: 104
},
{
“height”: 163,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=130x162&quality=96&sign=a5b44f18ecca30cf233f3cc2f31d9559&c_uniq_tag=mGtYgNTWs730sfLd7hYaBY9b8e3BsKqK-tZsN8izXZw&type=album”,
“type”: “o”,
“width”: 130
},
{
“height”: 250,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=200x250&quality=96&sign=53287c2ca0ffc5d51f295714cbb86675&c_uniq_tag=J5xDqXdlNtDIeqdvUCukB_PuCPaaus0bQWlA-KpsMHg&type=album”,
“type”: “p”,
“width”: 200
},
{
“height”: 400,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=320x400&quality=96&sign=dbf51abd16f6355c1cad41e673e8273d&c_uniq_tag=SQXtwqSs9FQs9v6C_ka-Pr8Xn3f0ACeXRX69oJNYqQ8&type=album”,
“type”: “q”,
“width”: 320
},
{
“height”: 638,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=510x637&quality=96&sign=f58801f494e14549f9f7c14799063f7d&c_uniq_tag=FxX-3P6d-M3HwtZQzniDvdOiHdkbSqPysuTnVOsskIY&type=album”,
“type”: “r”,
“width”: 510
},
{
“height”: 75,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=60x75&quality=96&sign=e9fcb6686f400af408cc83a230502d96&c_uniq_tag=CwAYPVpdB_9u3zz1Z-vG-eepwiueSeA2D48ucYBWmIM&type=album”,
“type”: “s”,
“width”: 60
},
{
“height”: 604,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=483x604&quality=96&sign=600de38150b1f065616d80b61a52699f&c_uniq_tag=93P8Pq2BQ0QpRo-8ijyQCIO7hoY8nOp8-IwY1LHNCns&type=album”,
“type”: “x”,
“width”: 483
},
{
“height”: 807,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=646x807&quality=96&sign=f82a779940effbea48fe2811ad3ce936&c_uniq_tag=8ogZJSdI-fRt0zYhMIWkpqIG23OKie2Qk181d77vmt8&type=album”,
“type”: “y”,
“width”: 646
},
{
“height”: 1080,
“url”: “https://sun9-21.userapi.com/impg/0hWDDPS_WsFIDGCPXsFC_ujSbvp7km-ezRQCKQ/3xkJXBBylPY.jpg?size=864x1080&quality=96&sign=7edb0e228117a9e1bf46bbd7922f428a&c_uniq_tag=HsNn1QkjYqvIFO1VXORcU1EppbzGWTgBOD7XkFX05CI&type=album”,
“type”: “z”,
“width”: 864
}
],
“text”: “”,
“user_id”: 100
}
}
],
“post_source”: {
“type”: “vk”
},
“comments”: {
“count”: 0,
“can_post”: 1,
“groups_can_post”: true
},
“likes”: {
“count”: 38,
“user_likes”: 0,
“can_like”: 1,
“can_publish”: 1
},
“reposts”: {
“count”: 6,
“user_reposted”: 0
},
“views”: {
“count”: 387
},
“donut”: {
“is_donut”: false
},
“short_text_rate”: 0.8
},
{

Below there is an screenshot of your json structure. Which text and which url you want to get ? Because sizes is an array with 8 objects that contains 8 url’s

jsonparseronline.com

Thank you very much for helping! Yes, “text” and object 8 from “sizes”, “url” exactly.

Thank you, dora paz! Finally managed to parse the whole string with your useful link to online parser. :pray:

1 Like

It would be nice to post your solution - blocks, in order to help other users with the same problem in the future

2 Likes

This is how I achieved the result. Possibly, could be better, because the loading of all the 9 cards takes about 5 sec, which is quite long.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.