Failure in Deserialization of File (NewtonSoft.JSON & VB.NET) [duplicate] - json

This question already has answers here:
How can I parse a JSON string that would cause illegal C# identifiers?
(3 answers)
Cannot deserialize the JSON array (e.g. [1,2,3]) into type ' ' because type requires JSON object (e.g. {"name":"value"}) to deserialize correctly
(6 answers)
Closed 1 year ago.
I have a small test file I'm trying to work with to deserialize the data into a model. I've already this using tokens in NewtonSoft.JSON but would rather do this properly with a model.
Example JSON
[
{
"faction": "Britain",
"id": "aa_barrage",
"image": "aa_barrage.png",
"import_id": "02",
"kredits": 1,
"rarity": "Standard",
"set": "Base",
"text": {
"de-DE": "Die gewählte Lufteinheit muss sich zurückziehen. Gibt deinem HQ +2 Verteidigung.",
"en-EN": "Target air unit must retreat. Give your HQ +2 defense.",
"es-ES": "La unidad aérea seleccionada debe retirarse. Otorga un +2 de defensa a tu cuartel general.",
"fr-FR": "L'unité aérienne visée doit battre en retraite. Confère +2 de défense à votre QG",
"it-IT": "L'unità aerea bersaglio deve Ritirarsi. Dai al tuo QG +2 difesa.",
"pl-PL": "Wybrana jednostka powietrzna musi się wycofać. Zapewnij swojemu sztabowi +2 do obrony.",
"pt-BR": "A unidade aérea na mira deve recuar. Dê +2 de defesa ao seu QG.",
"ru-RU": "Выбранный воздушный отряд должен отступить. Ваш штаб получает +2 к защите.",
"zh-Hans": "使一个空军撤退,你的总部获得 +2 防御力。",
"zh-Hant": "使一個空軍撤退,你的總部獲得 +2 防禦力。"
},
"title": {
"de-DE": "FLAK-SPERRFEUER",
"en-EN": "AA BARRAGE",
"es-ES": "BOMBARDEO AA",
"fr-FR": "BARRAGE AA",
"it-IT": "CONTRAEREA",
"pl-PL": "ZAPORA PRZECIWLOTNICZA",
"pt-BR": "BARRAGEM AA",
"ru-RU": "ЗЕНИТНЫЙ ОГОНЬ",
"zh-Hans": "防空弹幕",
"zh-Hant": "防空彈幕"
},
"type": "order"
},
{
"faction": "Britain",
"id": "active_sonar",
"image": "active_sonar.png",
"import_id": "fy",
"kredits": 0,
"rarity": "Elite",
"set": "OnlySpawnable",
"text": {
"de-DE": "Setzt alle feindlichen Einheiten fest. Karten in der gegnerischen Hand kosten 3 mehr.",
"en-EN": "Pin all enemy units. Increase cost of all cards in enemy hand by 3.",
"es-ES": "Inmoviliza todas las unidades enemigas. Las cartas en la mano del enemigo cuestan 3 más.",
"fr-FR": "Immobilise toutes les unités ennemies. Les cartes dans la main de l'ennemi coûtent 3 de plus.",
"it-IT": "Blocca tutte le unità nemiche. Aumenta di 3 il costo delle carte nella mano del nemico.",
"pl-PL": "Przyszpil wszystkie wrogie jednostki. Koszt kart w ręce przeciwnika wzrasta o 3.",
"pt-BR": "Imobilize todas as unidades inimigas. Todas as cartas na mão do inimigo custam mais 3.",
"ru-RU": "Блокирует все вражеские отряды. Карты в руке противника стоят на 3 больше.",
"zh-Hans": "压制敌方所有单位。对手所有手牌花费 +3。",
"zh-Hant": "壓制敵方所有單位。對手所有手牌花費 +3。"
},
"title": {
"de-DE": "AKTIVES SONAR",
"en-EN": "ACTIVE SONAR",
"es-ES": "SONAR ACTIVO",
"fr-FR": "SONAR ACTIF",
"it-IT": "SONAR ATTIVO",
"pl-PL": "AKTYWNY SONAR",
"pt-BR": "SONAR ATIVO",
"ru-RU": "АКТИВНЫЙ СОНАР",
"zh-Hans": "主动声呐",
"zh-Hant": "主動聲納"
},
"type": "order"
}
]
The current code I have for this is the following:
Module Program
Sub Main(args As String())
dim json As string = File.ReadAllText("C:\Temp\cards.json")
dim result As cards = JsonConvert.DeserializeObject(Of cards)(json)
End Sub
End Module
Public Class cards
public property cards as list(of card)
End Class
Public Class card
public property faction as string
public property id as string
public property image as string
public property import_id as string
public property kredits as integer
public property rarity as string
<JsonProperty("set")>
public property cardset as string
public property type as string
End Class
I can deserialize just one of these on its own, however when I try and deserialize with both it fails due to the following:
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'json_deserialize_test.cards' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
I have tried changing my deserialization to:
dim result As cards = JsonConvert.DeserializeObject(Of List(Of cards))(json)
but to no available, something that was mentioned in another question, can someone point me in the right direction here please, I feel like I've been looking at it too long and need another pair of eyes.

Related

How to fill variables with the content of a Json

I'm starting to work with PowerShell and my first task is to fix a problem with a script that already runs in the production environment.
This script is called via Webhook and it receives a parameter that the webhook passes to it.
I need to run this script inside PowerShell ISE to be able to debug it but I don't know how to fill the variables that are normally filled when it is called by Webhook.
Here is the beginning of the code where the variables are filled in, can someone give me a tip on how to fill the variable "WebHookData"..?
Thanks in advance.
I've tried to do this but it didn't work...
Sorry for putting images instead of the code, but for some reason I can't post the code.
This is the JSON that I use..
{"source":"la-draft-clipboard","value":[{"tokenKey":"8EAD3F03-E08F-4D58-8B1A-2AB8BD2F25DB","type":"literal","tokenExpression":"{"},{"tokenKey":"A7596123-17DF-49A9-AC18-1196A4CD457E","type":"new_line","tokenExpression":"\n"},{"tokenKey":"36DF511D-C1A9-4BC8-B2E9-37BCA058FB78","type":"literal","tokenExpression":" \"AutomationAccountName\": \"proj-00016-automation-account\","},{"tokenKey":"918137AE-EC61-4B77-A5F2-B527E2D4E3C9","type":"new_line","tokenExpression":"\n"},{"tokenKey":"DCC2D1C1-14F0-4869-A44C-08F8AB35B0B3","type":"literal","tokenExpression":" \"BeginPeakTime\": \"7:00\","},{"tokenKey":"61F7441B-0688-4AD2-A1A5-086C4F7F6D1E","type":"new_line","tokenExpression":"\n"},{"tokenKey":"2F3DD3CA-BD83-46EF-9529-C890C2E31CAF","type":"literal","tokenExpression":" \"ConnectionAssetName\": \"AzureRunAsConnection\","},{"tokenKey":"C6DD6FD0-E99A-48A8-96AA-3974D66FD9BD","type":"new_line","tokenExpression":"\n"},{"tokenKey":"A4E7A469-D08A-4C5A-8C6B-06E58996A0EC","type":"literal","tokenExpression":" \"EndPeakTime\": \"17:00\","},{"tokenKey":"E67547BC-98BB-4749-A84E-A36B761EE504","type":"new_line","tokenExpression":"\n"},{"tokenKey":"727D64BD-906C-4DA3-84C5-44F3054B2DEB","type":"literal","tokenExpression":" \"HostPoolName\": \"VDI-POOL-001\","},{"tokenKey":"92AFEBB8-4307-42C2-8BD0-C55ACC848940","type":"new_line","tokenExpression":"\n"},{"tokenKey":"F37993F9-1471-4E58-B43F-9BB08C4D4A03","type":"literal","tokenExpression":" \"LimitSecondsToForceLogOffUser\": 0,"},{"tokenKey":"8B2517D1-046E-43EF-BF75-B1EC5F31B83D","type":"new_line","tokenExpression":"\n"},{"tokenKey":"7464316E-6A8D-4F82-B269-95FF76A69014","type":"literal","tokenExpression":" \"LogOffMessageBody\": \"Salve seus trabalhos! Em aproximadamente 15 minutos, este terminal virtual será desligado automaticamente devido às políticas de otimização de custos da companhia. Caso seja necessário continuar suas atividades, um novo terminal poderá ser acessado após este período.\","},{"tokenKey":"7328955E-0025-4AA1-A0AE-CDAFA4238927","type":"new_line","tokenExpression":"\n"},{"tokenKey":"384AF3CF-CA86-4820-A5E1-230C09909662","type":"literal","tokenExpression":" \"LogOffMessageTitle\": \"ATENÇÃO!!!\","},{"tokenKey":"5E2EBD78-8599-487F-8DC5-CF9699595DDD","type":"new_line","tokenExpression":"\n"},{"tokenKey":"B7E409AF-A5AE-4622-A45E-5982FD15B03E","type":"literal","tokenExpression":" \"MaintenanceTagName\": \"NO_TAG\","},{"tokenKey":"3F9BF963-790D-45B1-9F04-D71A2B7C84DC","type":"new_line","tokenExpression":"\n"},{"tokenKey":"B6E94E37-69C0-4BF8-AE69-CD7B4EA9CB83","type":"literal","tokenExpression":" \"MinimumNumberOfRDSH\": 20,"},{"tokenKey":"00A1D37B-F82B-42F6-B792-75B39EBD6A83","type":"new_line","tokenExpression":"\n"},{"tokenKey":"F41B0C75-4541-4772-BF30-2D4F6DF045C6","type":"literal","tokenExpression":" \"ResourceGroupName\": \"proj-00016-wvd-rg\","},{"tokenKey":"FE6FC329-DC12-4782-83CE-F48BDC6B74B5","type":"new_line","tokenExpression":"\n"},{"tokenKey":"785500F8-3D71-4D91-AADA-D6ABF1EFD66B","type":"literal","tokenExpression":" \"ResourceGroupNameAutomation\": \"proj-00016-automation-rg\","},{"tokenKey":"BD3331BF-3BF9-4B9E-B9B8-C03E448B2D85","type":"new_line","tokenExpression":"\n"},{"tokenKey":"25586050-62A0-4CAF-81FD-C5770DF20B63","type":"literal","tokenExpression":" \"RunbookLogoffShutdown\": \"ARMLogoffAndShutdown\","},{"tokenKey":"C4B9E432-C41D-4374-9531-F2AEFDD51267","type":"new_line","tokenExpression":"\n"},{"tokenKey":"0155B6AB-7CAB-4C4E-BB1F-A643D9B0575B","type":"literal","tokenExpression":" \"SessionThresholdPerCPU\": 0.75,"},{"tokenKey":"3EAA1C7E-0119-40B9-9AF8-85D10E0FA3FD","type":"new_line","tokenExpression":"\n"},{"tokenKey":"2D904698-1386-47D7-9513-7CEE702BA0D3","type":"literal","tokenExpression":" \"TimeDifference\": \"-3:00\""},{"tokenKey":"40D497B6-AAED-4334-81C7-10B8C6745DE0","type":"new_line","tokenExpression":"\n"},{"tokenKey":"18EB90AF-25D4-4956-8A85-41BA555C6A95","type":"literal","tokenExpression":"}"}]}
Based on the JSON you've posted and the parts of the code we can see in the screenshot, give the following mock object a try:
$mockWebhookPayload = [pscustomobject]#{
WebhookName = 'NameOfWebhookGoesHere'
RequestHeader = #{ 'Content-Type' = 'application/json' }
RequestBody = #'
{
"AutomationAccountName": "proj-00016-automation-account",
"BeginPeakTime": "7:00",
"ConnectionAssetName": "AzureRunAsConnection",
"EndPeakTime": "17:00",
"HostPoolName": "VDI-POOL-001",
"LimitSecondsToForceLogOffUser": 0,
"LogOffMessageBody": "Salve seus trabalhos! Em aproximadamente 15 minutos, este terminal virtual será desligado automaticamente devido às políticas de otimização de custos da companhia. Caso seja necessário continuar suas atividades, um novo terminal poderá ser acessado após este período.",
"LogOffMessageTitle": "ATENÇÃO!!!",
"MaintenanceTagName": "NO_TAG",
"MinimumNumberOfRDSH": 20,
"ResourceGroupName": "proj-00016-wvd-rg",
"ResourceGroupNameAutomation": "proj-00016-automation-rg",
"RunbookLogoffShutdown": "ARMLogoffAndShutdown",
"SessionThresholdPerCPU": 0.75,
"TimeDifference": "-3:00"
}
'#
}
& .\path\to\webhook-script.ps1 -WebHookData $mockWebhookPayload

0 records when importing a JSON file in mysql WorkBench

I'm trying to import a .json into a database using MySQL workbench, but the "Table data import wizard" always end up with 0 records.
here's the first line of my .json:
{
"Title":"Fort de Villiers",
"Keywords":"Histoire",
"Descripion":"Le fort de Villiers est un ancien fort du système défensif de Paris, situé sur la commune de Noisy-le-Grand, dans le département français de Seine-Saint-Denis. Construit à la fin du XIXᵉ siècle, il faisait partie du système Séré de Rivières, destiné a établir un rideau défensif autour de Paris.",
"Images":["https://lh3.googleusercontent.com/proxy/J-7ut85_OfCJn33_EZcooBkGyjxGBXt5CifUJ_bGzHaZUHlT4XVYwNaIKpZ4hScn3ICcUMI12RZ4xzTxUGmN1LCK694hynag4zh68dLypDwQ_Gy9NwCIFweGTjkh3Wft4IMr0No1tFWbTQ6oBnmLgRaomsWzvoJrTa8=w296-h202-n-k-no","https://lh5.googleusercontent.com/p/AF1QipNs2wi72SiKVlLr1WHIPfAaATrXOfhswYWEIaOw=w296-h202-n-k-no","https://lh5.googleusercontent.com/p/AF1QipMIY16VgeazmwQAP7PB5biaq5p-9uE3OZ-zVYZB=w296-h202-n-k-no"],
"Lattitude":"48.833573",
"Longitude":"2.5463771",
"Map_url":"https://www.google.com/maps/place/Fort+de+Villiers/#48.833573,2.5463771,15z/data=!4m5!3m4!1s0x47e60e0d72beac57:0xd4b8549d2165eef7!8m2!3d48.8335733!4d2.5551319"
}
when i try to import it, i got those fields proposed:
Title : Text
Description : Text
Longitude : Double
Images : json
Map_url : Text
Keywords : Text
Lattitude : Double
With some research i found out that it may be that the "text" columns countains characters that doesn't fill the requiring format, but i didn't manage to get the right format.
Do i need to modify my .json to get a correct utf8 format?
I'm actually using mysql 8.

Python decoding String with json

I am trying to decode this string with python by using the JSON module but I keep getting this error I do not know what is the problem I will appreciate any help with this
here is my code
print(json.loads(data))
i get this error raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 38284 (char 38283)
here is the string
data = "{"config":{"csrf_token":"C32Czt1OaAEPfa0yfnexUwIfpRisDbEn","viewer":null,"viewerId":null},"country_code":"AE","language_code":"en","locale":"en_US","entry_data":{"ProfilePage":[{"logging_page_id":"profilePage_501391458","show_suggested_profiles":false,"show_follow_dialog":false,"graphql":{"user":{"biography":"AMEM, sem acento pra amar mais. \n\ud83d\udce9 brendamoniiique#gmail.com \n\ud83d\udcf7\ud83c\udfad\nSnap: brendamoniiique \ud83d\udc7b\nTwitter: brenndamonique \nSe inscreva no canal!\nV\u00eddeo novo \u2b07\ufe0f","blocked_by_viewer":false,"country_block":false,"external_url":"https://m.youtube.com/watch?v=rbQXKj8fgY4","external_url_linkshimmed":"https://l.instagram.com/?u=https%3A%2F%2Fm.youtube.com%2Fwatch%3Fv%3DrbQXKj8fgY4\u0026e=ATNF-ClUCsPTnGqme96AMWs934pGkHIP89zemVqEdVXLGs1DCPVyGA0_OkiLhLCwGDnk7nyP","edge_followed_by":{"count":513368},"followed_by_viewer":false,"edge_follow":{"count":610},"follows_viewer":false,"full_name":"Brenda Monique","has_channel":false,"has_blocked_viewer":false,"highlight_reel_count":4,"has_requested_viewer":false,"id":"501391458","is_business_account":true,"is_joined_recently":false,"business_category_name":"Creators \u0026 Celebrities","is_private":false,"is_verified":false,"edge_mutual_followed_by":{"count":0,"edges":[]},"profile_pic_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/c2f9a7480743127046dd6d77bd4d0616/5E341F01/t51.2885-19/s150x150/70377448_2518104848237245_4413369807659859968_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net","profile_pic_url_hd":"https://instagram.fauh1-1.fna.fbcdn.net/vp/9c2092522304ee52cd557e4ba41b96da/5E31A379/t51.2885-19/s320x320/70377448_2518104848237245_4413369807659859968_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net","requested_by_viewer":false,"username":"brenda","connected_fb_page":null,"edge_felix_video_timeline":{"count":2,"page_info":{"has_next_page":false,"end_cursor":null},"edges":[{"node":{"__typename":"GraphVideo","id":"2101210976602167456","edge_media_to_caption":{"edges":[{"node":{"text":"Mais medo do que dor.\nM\u00e3os de fada #fabipiercerr\n#brazillianinktattoo\nDesculpa por quebrar sua m\u00e3o amigo! #putzronan"}}]},"shortcode":"B0pAEAihhig","edge_media_to_comment":{"count":127},"comments_disabled":false,"taken_at_timestamp":1564704112,"dimensions":{"height":1333,"width":750},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/5bfebfd491f455e858f84367ae184874/5DA294E2/t51.2885-15/e35/66085352_866623317056051_5414623747182996505_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","edge_liked_by":{"count":3834},"edge_media_preview_like":{"count":3834},"location":null,"gating_info":null,"fact_check_information":null,"media_preview":"ABcqdtXOcnmiS3Mo+8V9OP51m+a7dOMVcSaUrnjIrOxtcljEg4bnHpyKKdHvGd/GecfWipsVczVU1MhZt30/z/Wkb5Vqa2cLVmZcdsqMckfyoqOFPkJ7n/PHtRSGynIhxTE+U1LcHnFOhHWmJ6EyM/fgelFOopkXZ//Z","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/14eaf49f6749eb775bd06dd9a6ab20e7/5DA2D353/t51.2885-15/sh0.08/e35/c0.280.720.720a/s640x640/66085352_866623317056051_5414623747182996505_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/a5b2166d543ae26bf279f7326187ab72/5DA2B5B3/t51.2885-15/e35/p150x150/66085352_866623317056051_5414623747182996505_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":150,"config_height":266},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/5c3b72b09f6f0d137a55d75d13786ec1/5DA2AD39/t51.2885-15/e35/p240x240/66085352_866623317056051_5414623747182996505_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":240,"config_height":426},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/fdf871515a02848f72391ae8535ebba1/5DA32EC3/t51.2885-15/e35/p320x320/66085352_866623317056051_5414623747182996505_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":320,"config_height":568},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/6d622d9e9bb0c8337558df56bdf7ecf7/5DA296D9/t51.2885-15/e35/p480x480/66085352_866623317056051_5414623747182996505_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":480,"config_height":853},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/a340f0feacd2c9d33972ae503e9fe8e5/5DA2BF94/t51.2885-15/sh0.08/e35/p640x640/66085352_866623317056051_5414623747182996505_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":640,"config_height":1137}],"is_video":true,"felix_profile_grid_crop":null,"encoding_status":null,"is_published":true,"product_type":"igtv","title":"Rea\u00e7\u00e3o ao piercing no mamilo.","video_duration":90.166,"video_view_count":55717}},{"node":{"__typename":"GraphVideo","id":"1823351818219301394","edge_media_to_caption":{"edges":[{"node":{"text":"Trabalhar com o que a gente ama com pessoas especiais, se torna lazer, amei conhecer voc\u00eas de pertinho, sempre admirei de longe essa marca incr\u00edvel. Obrigada por tudo! \ud83d\udc95"}}]},"shortcode":"BlN2NFxhioS","edge_media_to_comment":{"count":6},"comments_disabled":false,"taken_at_timestamp":1531580895,"dimensions":{"height":1333,"width":750},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/1f57785fbd076dca649e5102f0192b77/5DA2D10C/t51.2885-15/e15/36693531_244321656367003_7741952793291784192_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=107","edge_liked_by":{"count":131},"edge_media_preview_like":{"count":131},"location":null,"gating_info":null,"fact_check_information":null,"media_preview":"ABcqsG7t+gjX8l/wphuYv+ecf4gf4VnRx55/HHrUipn7wGScUDJ45UUksqtn2Ax+YoqIR9sYP0/xopDLMUDKFc87v5fT39KdPgfeAU84HfParK2UgI3EEDoRn+XrVhrSNj0565/xoAxYpWU5f5qK05LT05FFAjUppFcgLub/AJ6P/wB9N/jS/apv+ej/APfR/wAadhXOrbjk8UVyMlzKwwXYj3Y/40UWA//Z","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/bd94e68a518e0b0ea7316a49b986bec8/5DA2A283/t51.2885-15/e15/c0.280.720.720a/s640x640/36693531_244321656367003_7741952793291784192_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=107","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/25da56b2753e22ecc42d147b07fdc276/5DA3187E/t51.2885-15/e15/p150x150/36693531_244321656367003_7741952793291784192_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=107","config_width":150,"config_height":266},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/17690357faeffc9e83295cc70ce7e40a/5DA3B774/t51.2885-15/e15/p240x240/36693531_244321656367003_7741952793291784192_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=107","config_width":240,"config_height":426},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/b814c6604fa781e7938c7bf042a659d4/5DA3164E/t51.2885-15/e15/p320x320/36693531_244321656367003_7741952793291784192_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=107","config_width":320,"config_height":568},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/3eb4aced5cc8e8f56e366a1c0a9b991f/5DA2AF54/t51.2885-15/e15/p480x480/36693531_244321656367003_7741952793291784192_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=107","config_width":480,"config_height":853},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/721b0507afb4d563d3fddb158eccafce/5DA33021/t51.2885-15/e15/p640x640/36693531_244321656367003_7741952793291784192_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=107","config_width":640,"config_height":1137}],"is_video":true,"felix_profile_grid_crop":null,"encoding_status":null,"is_published":true,"product_type":"igtv","title":"Um pouco do making of pro #mundololita","video_duration":267.383,"video_view_count":9341}}]},"edge_owner_to_timeline_media":{"count":2946,"page_info":{"has_next_page":true,"end_cursor":"QVFDNUNoSHpDQndEb0pRUXpOel9WckNxa3lkTEM4MXo3eFRPUm1oc0F6emplejFsekxUU1VZcWYyZmM5MUE1NDdacXpSMllJWC0tN1NwU1RJSkt5eWhyVA=="},"edges":[{"node":{"__typename":"GraphImage","id":"2151922486391153093","edge_media_to_caption":{"edges":[{"node":{"text":"Indo ali de #instatoiss \nJ\u00e1 t\u00f4 vendo essa cal\u00e7a andando sozinha, tudo pra mim kkkkk"}}]},"shortcode":"B3dKhmZhSHF","edge_media_to_comment":{"count":90},"comments_disabled":false,"taken_at_timestamp":1570749172,"dimensions":{"height":1349,"width":1080},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/3ca56d6a02107b9829a481f384325796/5E372923/t51.2885-15/e35/p1080x1080/70238656_381298339415147_2571910151171428889_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","edge_liked_by":{"count":7420},"edge_media_preview_like":{"count":7420},"location":null,"gating_info":null,"fact_check_information":null,"media_preview":"ACEqsxpgVKWCjJ4A600GlzUJltEUU/m54K49e4PQ08mo5isL7QMDH3vf0P17AdKbvzVJ3JasPopm6igkcrUyZyEOOuOMdc9qeIX7YP0NVrstGhzwSOM/0rNGzKLBmbaTkgDknPOM9auRy7xnv3rPgO5sHn/9VXxgDjitDJkuaKi3UUCNFH39sVnXwMpEa545z2+n/wBetYdKY1cq0dzqeqsY9rC0TbzjkdCM/wA6unaeqj8Mj+VTmmGtOZmfKiLan90/99UUtFHMw5Uf/9k=","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/82533b55cf2c0e1ca87bdf6496f73ec1/5E23AADE/t51.2885-15/sh0.08/e35/c0.179.1440.1440a/s640x640/70238656_381298339415147_2571910151171428889_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/0ef643f0287638e3c2e533b7bb234bcd/5E34D815/t51.2885-15/e35/c0.179.1440.1440a/s150x150/70238656_381298339415147_2571910151171428889_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":150,"config_height":150},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/9221f2f4083889a8e77b99ccac4a19bc/5E36C45F/t51.2885-15/e35/c0.179.1440.1440a/s240x240/70238656_381298339415147_2571910151171428889_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":240,"config_height":240},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/0082899f6ec15fac43a9ce521de1d5c2/5E2C94E5/t51.2885-15/e35/c0.179.1440.1440a/s320x320/70238656_381298339415147_2571910151171428889_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":320,"config_height":320},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/34c96b00697e413879fab9fd193fda58/5E2645BF/t51.2885-15/e35/c0.179.1440.1440a/s480x480/70238656_381298339415147_2571910151171428889_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":480,"config_height":480},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/82533b55cf2c0e1ca87bdf6496f73ec1/5E23AADE/t51.2885-15/sh0.08/e35/c0.179.1440.1440a/s640x640/70238656_381298339415147_2571910151171428889_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":640,"config_height":640}],"is_video":false,"accessibility_caption":"Image may contain: one or more people and people standing"}},{"node":{"__typename":"GraphImage","id":"2151209103723397535","edge_media_to_caption":{"edges":[{"node":{"text":"Oi, te liguei, deve t\u00e1 ocupadinho..."}}]},"shortcode":"B3aoUhBBQGf","edge_media_to_comment":{"count":142},"comments_disabled":false,"taken_at_timestamp":1570664130,"dimensions":{"height":1349,"width":1080},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/529341a58c35678dd5bb0b55c922e610/5E216D5D/t51.2885-15/e35/p1080x1080/70242699_356069325136465_6184163639773416753_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","edge_liked_by":{"count":10196},"edge_media_preview_like":{"count":10196},"location":null,"gating_info":null,"fact_check_information":null,"media_preview":"ACEqxWIlYKuR2xV1IVY9CVBwMdf8+pqlEMOPx/wrSQs2FXpmueTtojSKH3yeZGGZtpThRnOceuBwcYrN85goQBecc4546c/zPep7mObO8jCjuP60RxI8TkkBgAQD7A/z9KaeiuS1qVN7e1FO3Q+j/mKKq3kIbGMN9RWlbOVfPqDx+NZr53ddxU4B6dD/AFrQtypkKknIx71E9fuNImoQJ1aM9cf5Nc+IHXCkYLHH45weK2rmU27I56E7Sfb/ADzTdQieRY5E5UnHuC3Gc+n9amN1oEu5Q2f7X6UUz7E/9/8AnRVWXf8AAi4sjRMfkHToMDJP8607eOOCMM4y5JJ9T7fQVk24/eJ9RV/+I/Wpb5dPLr6lpXJb64WWIqV2kYKkc8+hH+FR2ExaIwyco2QCOo//AFdjUMp5H1H86jnUCPcAA3PPf86cfeQnoN+wH+9+hoqLzX/vH8zRU80u/wCBVkf/2Q==","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/048c2ee17e60ab95080895ddecc21b90/5E368056/t51.2885-15/sh0.08/e35/c0.169.1357.1357a/s640x640/70242699_356069325136465_6184163639773416753_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/c6aa3ffc4536d3567d97189d48355a37/5E325C9D/t51.2885-15/e35/c0.169.1357.1357a/s150x150/70242699_356069325136465_6184163639773416753_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":150,"config_height":150},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/b34da1ac4ba66b1151e1baa1f01317a2/5E32B1D7/t51.2885-15/e35/c0.169.1357.1357a/s240x240/70242699_356069325136465_6184163639773416753_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":240,"config_height":240},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/edc0beac13959ce8dc870b82c35e2588/5E3E526D/t51.2885-15/e35/c0.169.1357.1357a/s320x320/70242699_356069325136465_6184163639773416753_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":320,"config_height":320},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/64f75b7c4d0df242617adae8627a0f5b/5E26AF37/t51.2885-15/e35/c0.169.1357.1357a/s480x480/70242699_356069325136465_6184163639773416753_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":480,"config_height":480},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/048c2ee17e60ab95080895ddecc21b90/5E368056/t51.2885-15/sh0.08/e35/c0.169.1357.1357a/s640x640/70242699_356069325136465_6184163639773416753_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":640,"config_height":640}],"is_video":false,"accessibility_caption":"Image may contain: one or more people, outdoor and closeup"}},{"node":{"__typename":"GraphImage","id":"2150405593951985561","edge_media_to_caption":{"edges":[{"node":{"text":"\"A t\u00e1, espera sentada\"\nEu:"}}]},"shortcode":"B3Xxn6OhV-Z","edge_media_to_comment":{"count":802},"comments_disabled":false,"taken_at_timestamp":1570568344,"dimensions":{"height":1350,"width":1080},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/371a801c4dd8565983d31dae77a7a46a/5E2E1FB6/t51.2885-15/e35/p1080x1080/70631980_551728168916322_5285310180508753159_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=106","edge_liked_by":{"count":21130},"edge_media_preview_like":{"count":21130},"location":null,"gating_info":null,"fact_check_information":null,"media_preview":"ACEqy1JzxTjkU+FgvJqSQhh1yf8APWpNLaEQXimMpXjpUkjFeR7flUOS5/z0oATaPWik8s+o/MUUCNc2kIByHG0A5B65+oqPyIo5HOPliAOMnn0qaVy7EbgU4wMgfmDineX5ryrnCyAANwRkUrg0VLiaKRBtGxxxtHIx9elWra3Uw7XxulBIz1/D+f41F9lUMqjO5jg4HGB1PTv2q680KPy2Cny47D6f1oGYn2Z/7rf5/Ciul3e/60UwKZjVuvP1o8lP7op4604VBRH5S9sj6E0wxnsx/EA/0qftTDQAzbJ/f/8AHRRTdx9aKQ7H/9k=","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/6dfa5b245a877c09912f39e9910d2efe/5E34C425/t51.2885-15/sh0.08/e35/c0.180.1440.1440a/s640x640/70631980_551728168916322_5285310180508753159_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=106","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/54cc65174f8394932794d42d8d1f684d/5E2A25EE/t51.2885-15/e35/c0.180.1440.1440a/s150x150/70631980_551728168916322_5285310180508753159_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=106","config_width":150,"config_height":150},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/cec09eb33e9b96a85b603d46d85aaad5/5E324EA4/t51.2885-15/e35/c0.180.1440.1440a/s240x240/70631980_551728168916322_5285310180508753159_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=106","config_width":240,"config_height":240},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/20a770913704443078747a9e9093f74a/5E64EF1E/t51.2885-15/e35/c0.180.1440.1440a/s320x320/70631980_551728168916322_5285310180508753159_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=106","config_width":320,"config_height":320},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/bca82bcd7c5f8d4900b2c34bf6df8fad/5E2B1744/t51.2885-15/e35/c0.180.1440.1440a/s480x480/70631980_551728168916322_5285310180508753159_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=106","config_width":480,"config_height":480},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/6dfa5b245a877c09912f39e9910d2efe/5E34C425/t51.2885-15/sh0.08/e35/c0.180.1440.1440a/s640x640/70631980_551728168916322_5285310180508753159_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=106","config_width":640,"config_height":640}],"is_video":false,"accessibility_caption":"Image may contain: one or more people and outdoor"}},{"node":{"__typename":"GraphImage","id":"2149505334816215859","edge_media_to_caption":{"edges":[{"node":{"text":"#nickelback te amo!"}}]},"shortcode":"B3Uk7akhxMz","edge_media_to_comment":{"count":67},"comments_disabled":false,"taken_at_timestamp":1570461025,"dimensions":{"height":1349,"width":1080},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/53c49e922b6f22c28764a121f8d190b8/5E30FAD9/t51.2885-15/e35/p1080x1080/70420951_2405711506371805_6496679180222382909_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","edge_liked_by":{"count":8399},"edge_media_preview_like":{"count":8399},"location":null,"gating_info":null,"fact_check_information":null,"media_preview":"ACEqwiMdaAM8VdkjDRh++Mcf1+nNQI21WQjO7BB7gj0pdLj62H3UBhbnnIquKuSt50Skn50yDnuM8fWiKNfMGO3JHuP5iktdOoPTXp95UwfQ0Vsea/8AeP5Ciq5ZdieeH834FB5t+/8A3tw/E/4VE0mcrjqQfy/xqSSPysbfmDqCCf6VLCiBHeQbiMYz6moukXZtlPt71Mku05Pfpj61POiGFHQbSchsetUnI7cf5/zxVJ3E109DR3p/fFFZdFVzS7sjkh/KvxLsoJVPRQRn9aN2I9nqcn8KbnPJ5qzIAIxgf55rI1Ig37pl9WBqFTtOcZB4I9R/T60p6j6f1opi3JM2/wDzyP8A32aKjoouB//Z","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/7872efc8a47865b7bd14838094606f95/5E19F499/t51.2885-15/sh0.08/e35/c0.179.1440.1440a/s640x640/70420951_2405711506371805_6496679180222382909_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/865947c3c59bba5c53fa86b9ce026bcb/5E2E87A9/t51.2885-15/e35/c0.179.1440.1440a/s150x150/70420951_2405711506371805_6496679180222382909_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":150,"config_height":150},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/5a6004950067ba7bbaf15e2b4eb61a55/5E1EA8AF/t51.2885-15/e35/c0.179.1440.1440a/s240x240/70420951_2405711506371805_6496679180222382909_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":240,"config_height":240},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/991ce70d66048efe2d80e5daf6eba147/5E2A42D1/t51.2885-15/e35/c0.179.1440.1440a/s320x320/70420951_2405711506371805_6496679180222382909_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":320,"config_height":320},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/540e2aaa394797a6368f728cdfe23382/5E341D96/t51.2885-15/e35/c0.179.1440.1440a/s480x480/70420951_2405711506371805_6496679180222382909_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":480,"config_height":480},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/7872efc8a47865b7bd14838094606f95/5E19F499/t51.2885-15/sh0.08/e35/c0.179.1440.1440a/s640x640/70420951_2405711506371805_6496679180222382909_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=101","config_width":640,"config_height":640}],"is_video":false,"accessibility_caption":"Image may contain: one or more people, people standing and shoes"}},{"node":{"__typename":"GraphImage","id":"2148823031496514609","edge_media_to_caption":{"edges":[{"node":{"text":"\ud83c\udfa1"}}]},"shortcode":"B3SJymFhxwx","edge_media_to_comment":{"count":115},"comments_disabled":false,"taken_at_timestamp":1570379688,"dimensions":{"height":1245,"width":1080},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/728146994169a3abf64aa9495ce8c13e/5E650113/t51.2885-15/e35/p1080x1080/71535757_189341858761917_81076465584500668_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=109","edge_liked_by":{"count":14124},"edge_media_preview_like":{"count":14124},"location":{"id":"129662805","has_public_page":true,"name":"Rock in Rio","slug":"rock-in-rio"},"gating_info":null,"fact_check_information":null,"media_preview":"ACQqftppWreymFa6rnBytlcgqMgE/SiKVXO3kN6H+lWEA5YdGHeqBULMgRt2WH069vwrlVZylbodrw6jG/W2po7KKs7aK3uc/KIygDnge9QMBnIYYHXpVF7ksA2AecEcnp+nNOMhmfaPu9hx1Hf6eormczrUF3/plkeWzjbk8c9cD0xmq2EEykDgN8zdunA+nH50xpRECM5z3z1J7cenc9qeFCkKx79KwvZ8x1ct1yt7Gm04BwBux15oqnsCcL0PNFV7RiVKPUyi4HC8n1/+vTdpZS6nkce5z6f4elR/wfjVqH/VH/fH8jWj0OWOrsZqHBz1rQtZDM4zyVGB9KpzjDVc0v8A1h+lEtrmkdHYuTbw34UVNJ96iuc6j//Z","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/7937f2b225ddebbb23725bf46c479048/5E3720D9/t51.2885-15/sh0.08/e35/c0.110.1440.1440a/s640x640/71535757_189341858761917_81076465584500668_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=109","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/c68c881947b03e7f381d95a3993e53a9/5E1CD3EA/t51.2885-15/e35/c0.110.1440.1440a/s150x150/71535757_189341858761917_81076465584500668_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=109","config_width":150,"config_height":150},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/7956089002e131809afafc0cc263759e/5E208E07/t51.2885-15/e35/c0.110.1440.1440a/s240x240/71535757_189341858761917_81076465584500668_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=109","config_width":240,"config_height":240},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/b0cfd38b4b392314b6a0798ebba57189/5E2D1014/t51.2885-15/e35/c0.110.1440.1440a/s320x320/71535757_189341858761917_81076465584500668_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=109","config_width":320,"config_height":320},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/30bdb0cdc454d3436f5a3b6c760e3846/5E26ED08/t51.2885-15/e35/c0.110.1440.1440a/s480x480/71535757_189341858761917_81076465584500668_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=109","config_width":480,"config_height":480},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/7937f2b225ddebbb23725bf46c479048/5E3720D9/t51.2885-15/sh0.08/e35/c0.110.1440.1440a/s640x640/71535757_189341858761917_81076465584500668_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=109","config_width":640,"config_height":640}],"is_video":false,"accessibility_caption":"Image may contain: one or more people, sky and outdoor"}},{"node":{"__typename":"GraphImage","id":"2148203493067266103","edge_media_to_caption":{"edges":[{"node":{"text":"C\u00eas pensaram que eu n\u00e3o ia rebolar minha bunda hoje?!... \ud83d\udd25"}}]},"shortcode":"B3P87H9hxg3","edge_media_to_comment":{"count":49},"comments_disabled":false,"taken_at_timestamp":1570305833,"dimensions":{"height":1174,"width":1080},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/ac9af9e9ccc13e8f3a7dea7f7c428727/5E21F612/t51.2885-15/e35/p1080x1080/69802783_931862850513383_368990004099701710_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","edge_liked_by":{"count":8066},"edge_media_preview_like":{"count":8066},"location":{"id":"129662805","has_public_page":true,"name":"Rock in Rio","slug":"rock-in-rio"},"gating_info":null,"fact_check_information":null,"media_preview":"ACcqtbaYRVopTGXFdFzjcSrtz9aNmKQuDkqQ2egyOw/TJqbac5YHvzx/+upU77dy3Stuun49iMLRUwGeaKu5nykv2mLONwqOS4TBHUdPTrx3+tUiv4ULEGOCSByT9BXHzs7+RMit0EXGMsCcH2xz/jz69KnN3FsAOeDkAflg1D5geQMBwAevfA79s1EGqU2mOVrabf5F1r2MDC5HAwevf39qKol8e34UVfMzOyJsleWz+PzD8xyPxFRtc4II5Oe3I6Y/r3xVt+KypuJfyqFqavTYej7D68EfTIx/WnA1XXqfqKmFNogduophooA//9k=","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/0d5cd5d6f91db7f88634465cad3806d6/5E22490D/t51.2885-15/sh0.08/e35/c0.63.1440.1440a/s640x640/69802783_931862850513383_368990004099701710_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/636d9dd6d0d2c444f1e4c5240e23bd6a/5E222C9A/t51.2885-15/e35/c0.63.1440.1440a/s150x150/69802783_931862850513383_368990004099701710_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":150,"config_height":150},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/c1890a64231dfc28ffcc517fe696ae34/5E2BC02F/t51.2885-15/e35/c0.63.1440.1440a/s240x240/69802783_931862850513383_368990004099701710_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":240,"config_height":240},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/1a9d284566fa6e4236f094ed20e8f076/5E1B4497/t51.2885-15/e35/c0.63.1440.1440a/s320x320/69802783_931862850513383_368990004099701710_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":320,"config_height":320},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/8e8e37178c4ebd012c4d341273a28df9/5E1C05CB/t51.2885-15/e35/c0.63.1440.1440a/s480x480/69802783_931862850513383_368990004099701710_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":480,"config_height":480},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/0d5cd5d6f91db7f88634465cad3806d6/5E22490D/t51.2885-15/sh0.08/e35/c0.63.1440.1440a/s640x640/69802783_931862850513383_368990004099701710_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=111","config_width":640,"config_height":640}],"is_video":false,"accessibility_caption":"Image may contain: one or more people, people standing, shoes, sky and outdoor"}},{"node":{"__typename":"GraphImage","id":"2148079208868813396","edge_media_to_caption":{"edges":[{"node":{"text":"\u2764\ufe0f"}}]},"shortcode":"B3PgqjSBxpU","edge_media_to_comment":{"count":81},"comments_disabled":false,"taken_at_timestamp":1570291018,"dimensions":{"height":980,"width":1080},"display_url":"https://instagram.fauh1-1.fna.fbcdn.net/vp/c80bb71715ee9d66d9742ea3398b3d0e/5E29B0E0/t51.2885-15/e35/s1080x1080/71512385_1294895257350424_3860920299024042991_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=104","edge_liked_by":{"count":11192},"edge_media_preview_like":{"count":11192},"location":null,"gating_info":null,"fact_check_information":null,"media_preview":"ACom13uFiAL556cVKk28BlBIPuB/Wsy+/wBWD6N/iKnsHzEPYkVFyy9vb0/X/wCtTSznpt/M/wCFULu6kiJCDtnOM1Tt7maTndjjngf4UuYfKbJ399uPbOf51JVeN9yZyW9z/wDWqfIpiMy+/wBWw9CD+v8A9emac/7sj0an3nKsPVc/l/8Aqqlp743D6GpK6mjdN8n481nsyAllGMYKj0x1q8ZMA1lN8vI+VvTt7nP9Kh7mi2NmI4jGeOM/nzVqs/zMj6irwFWiGUbrp9VIrM09S77R1Iooo7ie6Nn7Mp4JJ/T/ABqKSwRwMkjnPY/4UUUWC5E6GNip54zxWip4H0oopIZ//9k=","owner":{"id":"501391458","username":"brenda"},"thumbnail_src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/f0546a4183139ecfcf0b6d094342af01/5E1F2DD8/t51.2885-15/sh0.08/e35/c66.0.1307.1307a/s640x640/71512385_1294895257350424_3860920299024042991_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=104","thumbnail_resources":[{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/44b63ad614c7a2206df0fdb0c0a2be81/5E38514F/t51.2885-15/e35/c66.0.1307.1307a/s150x150/71512385_1294895257350424_3860920299024042991_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=104","config_width":150,"config_height":150},{"src":"https://instagram.fauh1-1.fna.fbcdn.net/vp/28ec1778b5d5a5764b640fdff171220c/5E369449/t51.2885-15/e35/c66.0.1307.1307a/s240x240/71512385_1294895257350424_3860920299024042991_n.jpg?_nc_ht=instagram.fauh1-1.fna.fbcdn.net\u0026_nc_cat=104"}"
Your string is not a valid JSON, it is missing many closing brackets. You can use a JSON validator online such as https://jsonformatter.curiousconcept.com that will show you all the errors.
To be more specific add ]}}]}}}}]}} at the end of your string and you are good to go.

Golang YAML with nested properties to JSON

I'm trying to parse some YAML from a file and convert each item to a flat JSON object.
I'm having some issues with datasets where there are multiple / nested objects.
I'm failing to unmarshal multiple items per file.
I'm unsure how to get nested properties such has item -> description -> en
When I run the following code I get the error.
cannot unmarshal !!map into []item.Item
I think I've got to look into sub-types within my structure, but I can't seem to get anything to work.
Any help would be appreciated.
Code:
import (
"gopkg.in/yaml.v2"
"io/ioutil"
)
func parseItemYaml() {
filePath := "./typeIDs.yaml"
yamlFile, err := ioutil.ReadFile(filePath)
if err != nil {
log.Printf("yamlFile.Get err #%v ", err)
}
itemData := map[int][]Item{}
err = yaml.Unmarshal(yamlFile, &itemData)
if err != nil {
panic(err)
}
// Then convert to JSON
// Eventual persistance
}
Item Structure:
type Item struct {
ID int
Name string `yaml:"name"`
Description string `yaml:"description"`
GroupID int `yaml:"groupID"`
IconID int `yaml:"iconID"`
GraphicID int `yaml:"graphicID"`
MarketGroupID int `yaml:"marketGroupID"`
Mass float64 `yaml:"mass"`
Published bool `yaml:"published"`
Volume float64 `yaml:"volume"`
}
Desired JSON format:
{
"ID":1563,
"Description":"Radiates an omnidirectional pulse from the ship that causes EM damage to surrounding vessels.",
"GroupID":72,
"IconID":112,
"GraphicID":72,
"MarketGroupID":382,
"Mass":10.0,
"Published":true,
"Volume":12.5
},
{...},
{...}
Data Subset:
1563:
description:
de: Ein ungerichteter Rundum-Impuls der vom Schiff ausgestrahlt wird und bei
umliegenden Schiffen EM-Schaden verursacht.
en: Radiates an omnidirectional pulse from the ship that causes EM damage
to surrounding vessels.
fr: Émet une impulsion omnidirectionelle qui part du vaisseau et provoque
des dégâts électromagnétiques à tous les vaisseaux situés à proximité.
ja: 全方位にパルスを放射し、周囲の艦にEMダメージを与える。
ru: Испускает сильный всенаправленный импульс, наносящий электромагнитный
ущерб всем объектам, окружающим корабль.
zh: 从舰船上发射一个全向脉冲,对周围船只造成电磁伤害。
graphicID: 2032
groupID: 72
iconID: 112
marketGroupID: 382
mass: 10.0
name:
de: Small EMP Smartbomb I
en: Small EMP Smartbomb I
fr: Petite bombe de proximité à IEM I
ja: 小型EMPスマートボムI
ru: Small EMP Smartbomb I
zh: 小型EMP立体炸弹 I
portionSize: 1
published: true
radius: 1000.0
volume: 12.5
1564:
basePrice: 650000.0
groupID: 152
iconID: 112
marketGroupID: 341
name:
de: Small EMP Smartbomb I Blueprint
en: Small EMP Smartbomb I Blueprint
fr: Plan de construction Petite bombe de proximité à IEM I
ja: 小型EMPスマートボムIブループリント
ru: Small EMP Smartbomb I Blueprint
zh: 小型EMP立体炸弹蓝图 I
portionSize: 1
published: true
volume: 0.01
1565:
description:
de: Ein ungerichteter Rundum-Impuls der vom Schiff ausgestrahlt wird und bei
umliegenden Schiffen EM-Schaden verursacht.
en: Radiates an omnidirectional pulse from the ship that causes EM damage
to surrounding vessels.
fr: Émet une impulsion omnidirectionelle qui part du vaisseau et provoque
des dégâts électromagnétiques à tous les vaisseaux situés à proximité.
ja: 全方位にパルスを放射し、周囲の艦にEMダメージを与える。
ru: Испускает сильный всенаправленный импульс, наносящий электромагнитный
ущерб всем объектам, окружающим корабль.
zh: 从舰船上发射一个全向脉冲,对周围船只造成电磁伤害。
graphicID: 2032
groupID: 72
iconID: 112
marketGroupID: 382
mass: 40.0
name:
de: Small EMP Smartbomb II
en: Small EMP Smartbomb II
fr: Petite bombe de proximité à IEM II
ja: 小型EMPスマートボムII
ru: Small EMP Smartbomb II
zh: 小型EMP立体炸弹 II
portionSize: 1
published: true
radius: 1000.0
volume: 5.0
Make structs e.g. like this:
type Language struct {
De string `yaml:de`
En string `yaml:en`
Fr string `yaml:fr`
Ja string `yaml:ja`
Ru string `yaml:ru`
Zh string `yaml:zh`
}
type Item struct {
Description Language `yaml:description`
GroupID int `yaml:"groupID"`
IconID int `yaml:"iconID"`
GraphicID int `yaml:"graphicID"`
MarketGroupID int `yaml:"marketGroupID"`
Mass float64 `yaml:"mass"`
Name Language `yaml:name`
Published bool `yaml:"published"`
Volume float64 `yaml:"volume"`
}
Also, as far as I see, it should be map[int]Item{} and not map[int][]Item{}.

How to select a specific record from a JSON source in YQL?

I'm trying to use YQL to get some data form a JSON source, but I'm getting NULL.
This is the JSON:
{
"categorias": [
{
"id": 0,
"categoryName": "Seguridad",
"description": "Protegete contra vulnerabilidades practicando correctamente la seguridad en el desarrollo de software",
"imageUrl": "http://domain/img_thmb/lock.png",
"tutorials": [
{
"id": 1,
"name": "Cross-Site request forgery (CSRF) para dummies",
"description": "Continuando con el tema de seguridad, vamos a analizar lo básico de un ataque CSRF para que puedan entender como funciona y poder protegerse del mismo.",
"tutorialUrl": "http://domain/post/6529205521/cross-site-request-forgery-csrf-para-dummies",
"imageUrl": "http://domain/lmsnt9akJ81qjthf4.jpg"
},
{
"id": 2,
"name": "Cross-site scripting (XSS) para dummies",
"description": "De acuerdo al OWASP el Cross-site scripting es una de las amenazas mas explotadas en el 2010.",
"tutorialUrl": "http://domain/post/6511050937/cross-site-scripting-xss-para-dummies",
"imageUrl": "http://domain/lmrfitzlmu1qjthf4.jpg"
}
]
},.....
This is the select statement I'm using in the YQL Console:
select * from json where url='http://domain/js/json.js' and id=1
I'm trying to get the "categorias ID" and I'm getting null, what am I doing wrong?
Im sorry, im new with YQL, im answering my own question, if there's some new too:
select categorias from json where url='http://domain/js/json.js' and categorias.id=1
Another option is to use the itemPath key to specify what should be considered an individual result.
select * from json
where itemPath="json.categorias"
and url="<url to json>"
and id=1;