How do I properly format JSON

  • Hello,

    when i send places request to google server i receive in return a following json:

    {
       "html_attributions" : [],
       "next_page_token" : "CoQC9AAAAH47ReglDjcE8DFfyQ6V6UaAIroriVKTt1yzKgHsu8djMTbwPl2SCL58ThU_gt-gGdqRJPKOeRMCYSQ0kL1CiqsB0ujCi2HlI0CKNGjAOFYCseZPFEwPIgHrX4U7sN16c1NolrBD0rDTO-HpQke79cA4oz_-5UMjOwlXTljmv59nJgH4cXlbNBunq49ZOpK5RyjsRY9hDWtlI9tHdjKk9UHA909nv2pmuwVjeFHv8idEdMttY9vmaornBKkiZ_Nq9sdoMr0V4n9vP0tHEePlCM11v62-kLTvscsrMN4u_y78133FXbAq9ap7jEmJid_YT0oBUIpHQ81fCu4YvWeUhH4SEAw0JeEY-x9FNNBrsUzDqbMaFA029BwatLyk0ZPv1ViViK8COAZ9",
       "results" : [
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.773177,
                   "lng" : 15.990016
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "dd234dea475974733cef2a328b6fdf52e6bcd880",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJeYiZGuDVZUcRa8NNyIfW2vI",
             "reference" : "CmRaAAAABUO7CxkKj8RrYkcOYeV0s_4vbzmA8RQBaFO96ftC3Ty7DKQ_6Gmh17LpYpYEel1ofhZkrZM2R1oECjY2CuZRYqCA1lh9P_ucp27tEbJrkNVygQwnvOQeIdK9o-iLipxKEhCTZvVrOxki2AG4ll8YUccpGhQXzxBKONoDZvXdZDyaIYYjaGwSyw",
             "scope" : "GOOGLE",
             "types" : [ "shopping_mall", "store", "point_of_interest", "establishment" ],
             "vicinity" : "Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.796347,
                   "lng" : 15.925754
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "4a758d56f754b4e92165f8f1759505c1bb4bbac8",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJCbwLorPWZUcRg09mBGGPbSg",
             "reference" : "CmRZAAAAubNDPECeS-foCoFDp6gHWVvbgPdz15dXg5BfaY66Ob3CxQmWWQbhskLC1Notojnch1QQpI3DtMzt4pkdL3vAUhB5wF6VeHnLnObPhhGz-sdGwv75eCqo2KyQ2q9VxYj9EhA6czyYdrBKZW1Q-XPEGA-KGhR8FYPderFT6iitqKmlDvWQbt38xw",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Anina ulica 51, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.815482,
                   "lng" : 15.997328
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "64860da5964feaa6e53c207f67816870d13cb02c",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJk457ta3XZUcRaRGHG3MzLkw",
             "reference" : "CmRZAAAAre6ZFg2v6mZn4Y31BOuGTlo-pBZPJ77NK-9HjlMzi-j52vvBzJnkxxwPxzWREvXuoSNOLUI2hsEwbc4NuV06yxfnJynexP7v5sYSZQuMTLVEzpnF8g4kWk62HqvmdIdJEhBDLR5ILq63CpckQeHH7Vk3GhSg4TUhg3nCEg3zQ1LflbtkQNIo3w",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Maksimirska cesta 1, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.803974,
                   "lng" : 16.036905
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "1856a734575102e60715ee9c7e65d281290f304e",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJP0Vhr4F4ZkcRh0Odg9e4xM0",
             "reference" : "CmRaAAAAhLhHKBxmsabYIc7p8AYmzNC-oDIZ1wQOjMrCBkhmPBxbomHVm-zZlKsd38RTtfuPJ3bH_vLCR4PBWwaccnJRYDBQ3vab62AYXY6C8L-Z5nrCib4tpt5NQ3Xal7MZ99GhEhBiEkeJZLKxa2XUQX5VXcaUGhQjl5BGeeO0XQwTDWsoNmeN_u5SXA",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Ulica Marijana Čavića 1, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.800865,
                   "lng" : 16.008018
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "fda17d8796f32683a0f9883608ca290252a18ebd",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJaa8hgzfWZUcR5R2s0bTFmno",
             "reference" : "CmRZAAAAQhlyHgrfMKdUexp7Gd6tbxe8LufTyAVaeG5okSuMUGhL99UFAYYtzrY2nrl0Czhr3Mdta5rNa2rDWZuVCW1iww5QUsIIlDQ8IkPTprX71tkqwDokBzrhSR2jW-IoqTlJEhD9to27dNHESspkjJ12SbahGhSY_uFepBR7MxB1sHYKVfB-kDuCmw",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "RadniÄŤka cesta 80, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.816688,
                   "lng" : 15.934
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "5a6259f0551d7b18dc1591505d7ab95003ed297f",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : true,
                "weekday_text" : []
             },
             "photos" : [
                {
                   "height" : 486,
                   "html_attributions" : [
                      "\u003ca href=\"https://maps.google.com/maps/contrib/105421386760750056489\"\u003eDragan Bach\u003c/a\u003e"
                   ],
                   "photo_reference" : "CmRdAAAAFTiOVIcMaP_uOsf5q7NcZ8KvGRHgsWiMw5HQZxsKwNMLF2GG7U2yel8VcBJYksoxPpDU7Uh7LovtDnTXk0EneMoTBC4ImwxSNC3CAECm9yLKee3WglKBDpLUn58fMUvMEhAOHrbjG-BpzPpRZOTl4O0gGhQ-3dQXSQAWZammUfX3nQ8wO4irpw",
                   "width" : 648
                }
             ],
             "place_id" : "ChIJLRslH7DXZUcRXMzTcQxbRzo",
             "reference" : "CmRZAAAAr0SVrEEhEJp1T4RFtmqLLSUVc7fLvzNBiCRBFPbd0ZvR3g5z2Gfh42eeyYUd5koUii9_WzBKiDsCY4zQvJ-xrzXbENomNRX5jKyHdq8E-P-K8StLjBzlURDut1_jMgf8EhDN6HD5vcauqgp3nMFC-A33GhSaxXby_ZhwsqE51NGoXuIJNfPWAA",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Ilica 288, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.81356,
                   "lng" : 15.964644
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "c30d69da5cd980d5bfc4440bd41194007fc80864",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJH-04JG76YUcRChG1l7g2jxQ",
             "reference" : "CmRZAAAAvNa2Eq6lXezj1mAss8pN4tXZG5ax1tQ-AJigTlqBmM7zskcm5Kb1SsHpbF-V-jiFM3TkpSRWn9FUluELA7sM_UN2h_c0M6vhlrxo3xRkJp_wqctZGGOpS_WWpH7p_HsGEhDWift7-08q5125vkJcSNfsGhT8N8g16GD_TPYUWQu61YXsSnk9Kg",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Britanski trg 8, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.816596,
                   "lng" : 16.021089
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "edd492e3ad15c92f5bc5be7305e5a25460f7c289",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJkVHRNc_XZUcRlQg2koqthwY",
             "reference" : "CmRZAAAAN5r3YICtyj-wYcn7iZ9CW85AgDUD5CkgOpizWj_8NsGA45iNWkz19TEoAJQ-LAhjQ0N5gGWKnnRbgqp_8WEHYohEUiH4Yq5GsrvN5HUXwdFLbJtj39KTp0dLPQzb-899EhDbsFXPZKe6EhwJ2i-xpoX1GhRX1UbTXqA55GbQWb8l6V_0VvC_Iw",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Ulica Antuna Jakića 41, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.799633,
                   "lng" : 15.909595
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "16aba11438765b36a83dfea7a9f3f02be5b25d62",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJC7gu40XRZUcRDDmxMCsHlNI",
             "reference" : "CmRaAAAAQKZt19kyRdPZFvNV4jbn6jOLCHm0feiiaV6LbEoSwBGU_g7A0P4tr7yDqxPgzTEcOqDzylCHUazsF0Godvp5Wvmw4qtTiaz-bBB9Up7vBtBxyGQRX7KqUmF_gj16totcEhAPyAFCgztXNPq-naQHrLfkGhQwV6Zi3e4TJpKjUXIdXNpTh_qBXw",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Pavlenski put 6, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.817491,
                   "lng" : 15.88587
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "ca7526e11abf665be1a995531a0c537f97e7a602",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJuRlxoQjRZUcR3FaJz6_pk6o",
             "reference" : "CmRaAAAAml0iavUK6AmMPdTQNJgw05TYG5UNliQ74aL8pIOqEwF65ZQR71ofjZXY5caizx9r0Qmltb6-989RWaqPYa37lpSArxxzhFwI1MTQKXUeRtBglzJtExnVEUfIayxui7xZEhDwNppNr380iBuFm-tRkjKIGhSZsojm11vP0pRh_iJbADVTwK1vzw",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Gospodska ulica 41, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.776451,
                   "lng" : 15.978305
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "8540b0e6eb9e888736f29715e62ac420e139ef93",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJ0egexHfWZUcRwaiOMYVpc2Q",
             "reference" : "CmRZAAAAWQGoLKWVyFUYqCsI3cUWZUhxABPylIfxnIKViW9DmOaVtraHNCoXNIgVyGRzGEXcClo3D5OyEKReN_BzTNyjqV0EiHvW0_9-gvIKpNvGQC4TmHKdyoO5e17yoopu22K-EhBiOCdsmfLTsDwUgeSa8P1sGhTBxpbfhFPbdUq_ODoDZLSvWALT5Q",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Avenija Dubrovnik 16, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.776672,
                   "lng" : 15.972609
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "9242818ed2891f4f532676b5c1595430a1dbdafb",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJfQ75htTVZUcRPLhHplIa7tw",
             "reference" : "CmRaAAAA2CxbCdAlJFLAW7MyIAESRGJYVAA-yxu09nl2bW0NawYhOTEvrPMimPasHyBOCfVXQBrjzIDtEiFonW43SKdHKN7gkXNa9AcH9bMUGezoTSfQPQhAjEF1e7KVsNYg_ddoEhDX4AAWp9P4-YEFQPLWoExbGhTwj5tCmOoengDYeGK_ANVUeTaCIQ",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Froudeova ulica 5, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.779155,
                   "lng" : 15.995707
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "ed568286d62aa1fa4a757bcd38e68c9e96b3b139",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJJXjyL0_WZUcRMpnC3e1x13g",
             "reference" : "CmRZAAAAphrYoBN4BJFdqiZRivXSxL0dY158m9S3LQ5UUoRt8lZuWT9zEIcOs3Ep-6uTHfa2mWf53afcDQgx4duNoYOGmSkzjcizLm0bzz06rsOOltkYC-Wd4efO19c6un1GkL69EhAmLvsJpHb6qggMPLZCHEkiGhTg4RqEKf-9noGviPpJNSJxLf57Xg",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Trg Ivana Meštrovića 1, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.838068,
                   "lng" : 16.048328
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "f0e6f22c64f01328cf1572723232cecc0315c107",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJ1fWmIfzXZUcRU1xiMXfxxAA",
             "reference" : "CmRYAAAAqs2bWyyx2ca8goPdAOJTwl6BlLUSm-1kpWqJrnFrp2WwWD4sMiRBnz-cowQMhMUW--HAUCwj71-BjY7qsQ5-oz7IDK6R93sP2jCIkqg-tDwCcvZswaNhaiX-9_1UBmwCEhAmYPgB9ex5JeIxmaH7DiDMGhRnLAUGb6WDLyQmODABZOCFz1EaIw",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Ulica Mirka Deanovića 19, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.715416,
                   "lng" : 16.071185
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "05c8ecf05b25d2185a7ff1d50beeac60c86ff3c2",
             "name" : "Konzum",
             "place_id" : "ChIJUWNDyGV-ZkcRjGFv-T8ghYk",
             "reference" : "CmRaAAAANtFIhAEihoJ3wPMiN_fLtSYPkK5vLbU6ckvReUB1Cpki80NU53DsQG4Xz57VmvacpFgUlgz0t1mt6CsUnDmBkpyctH8YOyW6BIBJ6eSkOIqtdZZ9eTfnnlu-_GtOCdsXEhBjLB_sXhCQqUx_7iORuh-LGhSIYbJlAOcPQZIQl57-5EOqu8LMXA",
             "scope" : "GOOGLE",
             "types" : [
                "grocery_or_supermarket",
                "food",
                "store",
                "point_of_interest",
                "establishment"
             ],
             "vicinity" : ""
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.816884,
                   "lng" : 15.963222
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "c477eccd41fca883d0b3243d0cd91d2eb5838bc3",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : true,
                "weekday_text" : []
             },
             "place_id" : "ChIJKabs0B_XZUcR-QGI2d5d-bU",
             "reference" : "CmRaAAAA9NnbBnFomy2tttPbtIqWkQ6vCzvUbjp-NHrjnoovUfnLLSk4UxfgX7Xq9vS1XIqgWExR2UDZ8MlfSfzzjN3UoywR1OWYYyKrVVF8hkT4MlJWCB81u9E5ifaI-6C787KOEhAiAXblqQYHYSgSRhzxWupGGhRsuo4VSsQA_1DWJqUjYxZvOydp_w",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "RadniÄŤki dol 23, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.789784,
                   "lng" : 15.94956
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "1107fea6f920607ade5fad59ba11d27d2274ee44",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJFUggW5fWZUcRw1R0z3IUO54",
             "reference" : "CmRaAAAAPnkcPWfShtUwZunzAUFvOHUc1szzkfqk23kD9vUACIJUaI1lstwbRJBq3QJmEc23kqc1W5CTTIyu7ykn3qHVNcqcF8aEHLQQDffItBYBwVcME4c21SAPE0JS948UBGS8EhDWQDljis3Amj5NfWtSaFuUGhQ2IJEufhylQNW9RAuqxyz8Pbwo0A",
             "scope" : "GOOGLE",
             "types" : [
                "grocery_or_supermarket",
                "food",
                "store",
                "point_of_interest",
                "establishment"
             ],
             "vicinity" : "Ulica Tina Ujevića 17, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.792911,
                   "lng" : 15.969819
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "f29ca6c549e3325f613ae122af2fa214bbdafcad",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJ6SOas4vWZUcRXhg2BvgRQhM",
             "reference" : "CmRZAAAA9XFKT_xdILXhbqOKgLVtuMJOSjS7JlGAddgYklcDklYo1ydk4mslKSpID66VPum0GCxF8d7-7jWJgmgTmIXAj62AwCy00er7kbdMkgizAioT2w9OD5SBpQQWFaPUzdUEEhBHyFQVqpwJRUykUr2ZXt2OGhQVnjGQ1dr81yV6MqIWFRCmra1WtQ",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Slavonska avenija 6, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.828116,
                   "lng" : 16.079482
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "fe95086e1ad42a6c95e9c056da5440ff39d98db0",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJNdR9tDx4ZkcRvZJf_uADS-M",
             "reference" : "CmRaAAAAqCvhUPhwucIWOY4U5wPmEXlwvGI1Lyq-O4hRrOiOhdbcPwiFJo_0eh0bEmFf0XnOpkKHjGVtrJOJLqD0pJFJKsf9IMhvtwYq0d2i5P2GivJc5jWfL0KsgxxzBkZOOPC_EhD3sxypQG21fyF6_PiSZiWxGhT9sEMPdbSA2olM3Mk2FZT2jxGdIA",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Avenija Dubrava 241, Zagreb"
          },
          {
             "geometry" : {
                "location" : {
                   "lat" : 45.773791,
                   "lng" : 15.94539
                }
             },
             "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
             "id" : "3453fa22df13f2c1eda63f4ca9c059f36a86756b",
             "name" : "Konzum",
             "opening_hours" : {
                "open_now" : false,
                "weekday_text" : []
             },
             "place_id" : "ChIJqfBJSSTUZUcRZnfR_SrCaig",
             "reference" : "CmRZAAAATJUwHBkXDXd1JxjJEx9SeF24MYrBwdqvC4OsNhTfhiGb1UoHgWHkMGox7G6KBFou_Te18loC6fIMHcjKxI5VBkboGeSx6Yh9AeyxfOyGfTt06j9pHtBxoMxR02pDeKUSEhA2oj9Kmvb4xA2LJroDNEsrGhQgE-kyjuqjfPc5ICCB2chXVxitFQ",
             "scope" : "GOOGLE",
             "types" : [ "store", "point_of_interest", "establishment" ],
             "vicinity" : "Lanište ulica 18, Zagreb"
          }
       ],
       "status" : "OK"
    }[/code:7xq37ncg]
    
    now when i simply copy/paste that into iframe plugin to set from json i receive a ton of errors for "unknown character" and cannot save that.
    
    my question is... how do i properly format this so that i can open it in iframe / set from json?
    
    thank you.
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You need to structure your json file so that C2 can understand it.

    An example of a json file Cdata2.zip from the tutorial.

    This is the important part, and obviously opening and closing correctly

    {
    "c2array":true,
    "size":[13,6,1],
    "data":[[[/code:1u5nhyqm]
  • DUTOIT

    thank you, but still problem persist...

    when i format as you sugest i get syntax error starting from the very first doublequote "

    only when i change all double to single quotes than i can save it, but is that ok?

    and those numbers in "size"... do i need to change them?

  • That should be fine. " " or ' ' as long is you are consistent.

    Sounds like you trying to store text directly so you have to change all the " to "" or ' and then put quotes around the whole thing.

    And yes, the size is specific to your json file [width, height, depth]

    oh, and is your json for array or dictionary?

    as dictionary with ' ' would look like this...

    "{'c2dictionary':true,'data':{'id':'1','Item_Name':'BushFly',........'}}"[/code:36qli2kr]
    
    I create a basic structure using c2, then download to json. That way I get the formatting perfect. Using 3rd party json editors only works once you have the basic structure down.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)