ja consegui !!!
Hey there⌠again. I am so sorry to bother y´all but I am sure I´ve follwed your instructions and I don´t know why this thing is still messed up.
This is my json file
[
{
âAnswerâ: âAnswer Aâ
},
{
âAnswerâ: âAnswer Bâ
},
{
âAnswerâ: âAnswer Câ
},
{
âAnswerâ: âAnswer Dâ
}
]
This is my design in which you can see the local file is uploaded
And these are my blocks
I´ve tried different file extensions: .js , .json and .txt
And I don´t know why on my app Label still says âLabelâ
I´d appreciate your help
David,
The key that you use in your Local Storage Get block needs to be exactly that same as the key that you presumably used in a Local Storage Save block somewhere else in your app.
In the meantime, you might want to first just set your label to the JSON value returned by your Local Storage Get block (you might also want to increase the width and height of the label so that it will fit all the JSON). Assuming that the JSON looks good, you might then want to display the result of your 'get property ...' blocks (you can use 'generate JSON from object' to convert that value to displayable JSON). Doing these steps will help you to debug your blocks and see where the error might be.
If none of the above help, could you post a share/copy link of your project (hereâs how)? That might allow us to give you more help.
-Mark
Im able to extract the place names of my surrounding location, but i need the photo reference as well which is in the json list from the api but now i need also extract the phto reference, why can i do it with ânameâ but not âphoto referenceâ - what json path am i missing?
see the blocks pls:
also this is what my json result looks like from the url:
{
âhtml_attributionsâ : ,
ânext_page_tokenâ : âCqQCFwEAAPlMLjSfkOtUDbFa7SSiMqDp6_tUGbCLDmM4euas9MrP51PZCSVx3GtKlYXRdritUYz4WA_qkBbBZ_5b833VV5sPPNHJeDt9otfDuNXSVKuuY-MvTcGAlwCqjxSAxtaA5SHn05PP1kr-IAMoN8yknh7gAIKAbX6i86cKfhw6SGPgfSxo6BMyWlYfriJqcReqES2sNtsqQ0DR6SkAzZDoPdAR8qt9ehLSWPeE8Pe3H6i7GOXE2Df_Jvf_gZiQC0rH_ytGBtUnEBWvJwZyzqqnqhWg1V2AuB7QXQseJtoDZgyDYWN3vJNMdqB8yOtYkLOZ4Q6M9ANZ-LIcod2Og56kWpb8c_DOSY8o6WhfJdGiylKvXfTdUa4UtoV-c3ypY6iLZRIQI7DCTqEqXFOyB_nmxuBoaBoUkkt7hymQyGtfVAf4RfajiJ1TMu8â,
âresultsâ : [
{
âgeometryâ : {
âlocationâ : {
âlatâ : -29.7870389,
âlngâ : 31.02204219999999
},
âviewportâ : {
ânortheastâ : {
âlatâ : -29.7457011,
âlngâ : 31.0673288
},
âsouthwestâ : {
âlatâ : -29.8121719,
âlngâ : 30.990419
}
}
},
âiconâ : âhttps://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.pngâ,
âidâ : â2481b08a523fa7dfcc52339521fb6289d93880cfâ,
ânameâ : âDurban Northâ,
âphotosâ : [
{
âheightâ : 1836,
âhtml_attributionsâ : [
â\u003ca href=âhttps://maps.google.com/maps/contrib/116936888055646766012/photosâ\u003emuhummed bhayla\u003c/a\u003eâ
],
âphoto_referenceâ : âCmRaAAAA4fDIxCIg1tlptb_xfUweNmPIb8yXE64UbcDO_5CFVi2la0RbXC6qUAT2cumALD4akUQep1ug8BJ9K9dpT7uGvm53MFfVoXgjnByRpVWRiYZIMp0XbHnQVbokD86IRGdMEhAyubYZ7nLSGPkRUIuTHO45GhQN1A34hZaQYZMl4mrreOlqcvv_gAâ,
âwidthâ : 3264
}
],
âplace_idâ : âChIJ04EcnZEG9x4Rr-9fNPScsToâ,
âreferenceâ : âChIJ04EcnZEG9x4Rr-9fNPScsToâ,
âscopeâ : âGOOGLEâ,
âtypesâ : [ âlocalityâ, âpoliticalâ ],
âvicinityâ : âDurban Northâ
},
{
âgeometryâ : {
âlocationâ : {
âlatâ : -29.771907,
âlngâ : 31.037212
},
âviewportâ : {
ânortheastâ : {
âlatâ : -29.7705679697085,
âlngâ : 31.03858208029149
},
âsouthwestâ : {
âlatâ : -29.7732659302915,
âlngâ : 31.03588411970849
}
}
},
âiconâ : âhttps://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.pngâ,
âidâ : â44ef45566537d9237dd047767a98a100d72b8584â,
ânameâ : âDuikerfontein B & Bâ,
âphotosâ : [
{
âheightâ : 2988,
âhtml_attributionsâ : [
â\u003ca href=âhttps://maps.google.com/maps/contrib/115866465107119235256/photosâ\u003eRudi Rabie\u003c/a\u003eâ
],
âphoto_referenceâ : âCmRaAAAAgxNwa1D-bHFzlZD5uB0-4uOjXkD5BB4uIUM72lD6zmvMbONo_UpMgSHE1Y5_jsAkdT44XOWalmNI4H9jV8RgerJ5AuXvfn-S7dXkHhNeieN7EXFM2IlUsiejCNAMiUb9EhBh4lpRTbgcf6H0Y5a5H0AtGhT26GIRsf-gvvHaU9_Icolgraa_xgâ,
âwidthâ : 5312
}
],
âplace_idâ : âChIJM1QVkGAG9x4R_I_fl0FSqq8â,
âplus_codeâ : {
âcompound_codeâ : â62HP+6V Durban North, South Africaâ,
âglobal_codeâ : â5G2H62HP+6Vâ
},
âratingâ : 4.6,
âreferenceâ : âChIJM1QVkGAG9x4R_I_fl0FSqq8â,
âscopeâ : âGOOGLEâ,
âtypesâ : [ âlodgingâ, âpoint_of_interestâ, âestablishmentâ ],
âvicinityâ : â135 Umhlanga Rocks Drive, Durban North, Durbanâ
},
{
âgeometryâ : {
âlocationâ : {
âlatâ : -29.776884,
âlngâ : 31.037772
},
âviewportâ : {
ânortheastâ : {
âlatâ : -29.7753892197085,
âlngâ : 31.0391405802915
},
âsouthwestâ : {
âlatâ : -29.7780871802915,
âlngâ : 31.0364426197085
}
}
},
âiconâ : âhttps://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.pngâ,
âidâ : â36e7d67cadae264c1c70b747b78d72a8ac2c4dd6â,
ânameâ : âBeachway Cottagesâ,
âplace_idâ : âChIJNzllx14G9x4RvArtT5M0eC8â,
âplus_codeâ : {
âcompound_codeâ : â62FQ+64 Durban North, South Africaâ,
âglobal_codeâ : â5G2H62FQ+64â
},
âratingâ : 5,
âreferenceâ : âChIJNzllx14G9x4RvArtT5M0eC8â,
âscopeâ : âGOOGLEâ,
âtypesâ : [ âlodgingâ, âpoint_of_interestâ, âestablishmentâ ],
âvicinityâ : â12 Beachway, Durban North, Durbanâ
},
{
âgeometryâ : {
âlocationâ : {
âlatâ : -29.776306,
âlngâ : 31.034142
},
âviewportâ : {
ânortheastâ : {
âlatâ : -29.7750286197085,
âlngâ : 31.0356409302915
},
âsouthwestâ : {
âlatâ : -29.7777265802915,
âlngâ : 31.0329429697085
}
}
},
âiconâ : âhttps://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.pngâ,
âidâ : â3e5c222446e9ae80f0508818d86e1d758f527e00â,
ânameâ : âFlying Soloâ,
âopening_hoursâ : {
âopen_nowâ : false
},
âplace_idâ : âChIJLb7AeV8G9x4RfUAkEnb4zlkâ,
âplus_codeâ : {
âcompound_codeâ : â62FM+FM Durban North, South Africaâ,
âglobal_codeâ : â5G2H62FM+FMâ
},
âreferenceâ : âChIJLb7AeV8G9x4RfUAkEnb4zlkâ,
âscopeâ : âGOOGLEâ,
âtypesâ : [ âtravel_agencyâ, âpoint_of_interestâ, âestablishmentâ ],
âvicinityâ : â39 Umhlanga Rocks Drive, Durban Northâ
},



