JSON OBJECT TESTS -> SC 11608
Print JSON OBJECT (Does Not Need Decoding)
Basic Example:
{"Peter":35,"Ben":37,"Joe":43, "Bob":101}
API Example:
{ "text": [], "colours": { "primaryBackground": "#5ABDF9", "primaryLight": "#ECF0F3", "primaryText": "#0670B1" }, "images": { "avatar": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/default_avatar.svg?Expires=1729255978&Signature=VeVJCQcztCqRPyyNDSQNyvOSly75~KCk0cSoRcemX8FYaw2yq5iZo0yvKAlEi~m0LUjlj-mu9ShP8SQWsFQCMgn-dlZg5dHBL1d-wKsPT-kZ6EeSlaRcrB177~-jY4BkKP-qM9AxnkRsKIUnmyelQceWeAq3sm9y4iceHldXXMWgCZH1d6phcrkozslq8zlFEAOl~675se5px93KcgnzsEK3~GwNYQf5-VFxPNPf3-pENFXjBacQsIabKp1e2zEpeJEgR1Rg9XI9UpSFagEIGnhnC3c9X8hQnnbxqcOIMgulML4UYCSbEvrUVpfUC7Oi44NCHisA3KG1IlsPuO9yqg__&Key-Pair-Id=K1UT3NAZQUV8HI", "favicon": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/247c510e9630406e98e981050120a418-ffe254cf136845e487257bd8c45fa3ab.png?Expires=1729255978&Signature=Ud52Hvha4g4I2VVORFKB45RngiHd~2PrWxWmcJqgf8THewk2osrm6YuF-Um26k5VLbOcwzM86Yy9g4RkWoTXUDlj-fT4IDzzSHZVgWkIGbfe70weyySYRda~PztahadhrbVRELIsugzki10Cnywd~9MzwLuSDANzJftqjSs1FGSuf2hJ8ClmoZsUDWTJo9Sw8B~jYdfSEY5j~Uak~H9DcVQUUam1mmYOAE-Qh4uwEBbICI5Rtk78o7GB8VG3k3qjFn5G5Wm9wM8dX2P2OerudBLknhwwuRrEEv68lafzPnInOw5UbhDXcIJh89tZUhHJZTUap-poZotU8exkmKMmjg__&Key-Pair-Id=K1UT3NAZQUV8HI", "logo": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/20f5ab6d-34fa-412b-98fd-7197f1f60d3d.svg?Expires=1729255978&Signature=M5Vj6EGovcl3O7wskDtGaExlO07DicN2DhmRFKVbtoVHCak6Tf6BuYGmPzYl5oNvCfrjaVjaTviqcd8rYNwLpR3jJN0d9Q3LQ5~PWhYkk1JgfkID-YAunufpBZMHlQCdK7RUsj21juF2Zbqe1NHqDytpoURZXVo7ghCHNdPXXpdCSEmJG9FvSX89D-9VHX8YopZX8N35AliPRFSpWYcryD3dJ9gKxypc6EoJhfVTtAiWKY75YMJKoqwSceDqEMnc-sticjKMqpLxT3dnaibMaofry1sx3mThU4PwoD77kuG6hDMYVlr55WlKAah4vQ1oiVJ1NlRU0lHAstRhAzjgAA__&Key-Pair-Id=K1UT3NAZQUV8HI" }, "dark": false }
============
Echoing JSON OBJECT (Does not Need Decoding)
Basic Example:
{"Peter":35,"Ben":37,"Joe":43, "Bob":101}
API Example:
{ "text": [], "colours": { "primaryBackground": "#5ABDF9", "primaryLight": "#ECF0F3", "primaryText": "#0670B1" }, "images": { "avatar": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/default_avatar.svg?Expires=1729255978&Signature=VeVJCQcztCqRPyyNDSQNyvOSly75~KCk0cSoRcemX8FYaw2yq5iZo0yvKAlEi~m0LUjlj-mu9ShP8SQWsFQCMgn-dlZg5dHBL1d-wKsPT-kZ6EeSlaRcrB177~-jY4BkKP-qM9AxnkRsKIUnmyelQceWeAq3sm9y4iceHldXXMWgCZH1d6phcrkozslq8zlFEAOl~675se5px93KcgnzsEK3~GwNYQf5-VFxPNPf3-pENFXjBacQsIabKp1e2zEpeJEgR1Rg9XI9UpSFagEIGnhnC3c9X8hQnnbxqcOIMgulML4UYCSbEvrUVpfUC7Oi44NCHisA3KG1IlsPuO9yqg__&Key-Pair-Id=K1UT3NAZQUV8HI", "favicon": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/247c510e9630406e98e981050120a418-ffe254cf136845e487257bd8c45fa3ab.png?Expires=1729255978&Signature=Ud52Hvha4g4I2VVORFKB45RngiHd~2PrWxWmcJqgf8THewk2osrm6YuF-Um26k5VLbOcwzM86Yy9g4RkWoTXUDlj-fT4IDzzSHZVgWkIGbfe70weyySYRda~PztahadhrbVRELIsugzki10Cnywd~9MzwLuSDANzJftqjSs1FGSuf2hJ8ClmoZsUDWTJo9Sw8B~jYdfSEY5j~Uak~H9DcVQUUam1mmYOAE-Qh4uwEBbICI5Rtk78o7GB8VG3k3qjFn5G5Wm9wM8dX2P2OerudBLknhwwuRrEEv68lafzPnInOw5UbhDXcIJh89tZUhHJZTUap-poZotU8exkmKMmjg__&Key-Pair-Id=K1UT3NAZQUV8HI", "logo": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/20f5ab6d-34fa-412b-98fd-7197f1f60d3d.svg?Expires=1729255978&Signature=M5Vj6EGovcl3O7wskDtGaExlO07DicN2DhmRFKVbtoVHCak6Tf6BuYGmPzYl5oNvCfrjaVjaTviqcd8rYNwLpR3jJN0d9Q3LQ5~PWhYkk1JgfkID-YAunufpBZMHlQCdK7RUsj21juF2Zbqe1NHqDytpoURZXVo7ghCHNdPXXpdCSEmJG9FvSX89D-9VHX8YopZX8N35AliPRFSpWYcryD3dJ9gKxypc6EoJhfVTtAiWKY75YMJKoqwSceDqEMnc-sticjKMqpLxT3dnaibMaofry1sx3mThU4PwoD77kuG6hDMYVlr55WlKAah4vQ1oiVJ1NlRU0lHAstRhAzjgAA__&Key-Pair-Id=K1UT3NAZQUV8HI" }, "dark": false }
============
For Loops JSON OBJECT Must Be DECODED!
Basic Example:
Your key is: Peter and the value of the key is:35
Your key is: Ben and the value of the key is:37
Your key is: Joe and the value of the key is:43
Your key is: Bob and the value of the key is:101
API Example:
Your key is: text and the value of the key is:Array
Your key is: colours and the value of the key is:Array
Your key is: images and the value of the key is:Array
Your key is: dark and the value of the key is:
============
Print DECODED
Basic Example:
Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 [Bob] => 101 )
Multidimensional Example:
Array ( [text] => Array ( ) [colours] => Array ( [primaryBackground] => #5ABDF9 [primaryLight] => #ECF0F3 [primaryText] => #0670B1 ) [images] => Array ( [avatar] => https://platformcdn.staging.growthinvest.com/branding/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf/default_avatar.svg?Expires=1729255978&Signature=VeVJCQcztCqRPyyNDSQNyvOSly75~KCk0cSoRcemX8FYaw2yq5iZo0yvKAlEi~m0LUjlj-mu9ShP8SQWsFQCMgn-dlZg5dHBL1d-wKsPT-kZ6EeSlaRcrB177~-jY4BkKP-qM9AxnkRsKIUnmyelQceWeAq3sm9y4iceHldXXMWgCZH1d6phcrkozslq8zlFEAOl~675se5px93KcgnzsEK3~GwNYQf5-VFxPNPf3-pENFXjBacQsIabKp1e2zEpeJEgR1Rg9XI9UpSFagEIGnhnC3c9X8hQnnbxqcOIMgulML4UYCSbEvrUVpfUC7Oi44NCHisA3KG1IlsPuO9yqg__&Key-Pair-Id=K1UT3NAZQUV8HI [favicon] => https://platformcdn.staging.growthinvest.com/branding/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf/247c510e9630406e98e981050120a418-ffe254cf136845e487257bd8c45fa3ab.png?Expires=1729255978&Signature=Ud52Hvha4g4I2VVORFKB45RngiHd~2PrWxWmcJqgf8THewk2osrm6YuF-Um26k5VLbOcwzM86Yy9g4RkWoTXUDlj-fT4IDzzSHZVgWkIGbfe70weyySYRda~PztahadhrbVRELIsugzki10Cnywd~9MzwLuSDANzJftqjSs1FGSuf2hJ8ClmoZsUDWTJo9Sw8B~jYdfSEY5j~Uak~H9DcVQUUam1mmYOAE-Qh4uwEBbICI5Rtk78o7GB8VG3k3qjFn5G5Wm9wM8dX2P2OerudBLknhwwuRrEEv68lafzPnInOw5UbhDXcIJh89tZUhHJZTUap-poZotU8exkmKMmjg__&Key-Pair-Id=K1UT3NAZQUV8HI [logo] => https://platformcdn.staging.growthinvest.com/branding/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf/20f5ab6d-34fa-412b-98fd-7197f1f60d3d.svg?Expires=1729255978&Signature=M5Vj6EGovcl3O7wskDtGaExlO07DicN2DhmRFKVbtoVHCak6Tf6BuYGmPzYl5oNvCfrjaVjaTviqcd8rYNwLpR3jJN0d9Q3LQ5~PWhYkk1JgfkID-YAunufpBZMHlQCdK7RUsj21juF2Zbqe1NHqDytpoURZXVo7ghCHNdPXXpdCSEmJG9FvSX89D-9VHX8YopZX8N35AliPRFSpWYcryD3dJ9gKxypc6EoJhfVTtAiWKY75YMJKoqwSceDqEMnc-sticjKMqpLxT3dnaibMaofry1sx3mThU4PwoD77kuG6hDMYVlr55WlKAah4vQ1oiVJ1NlRU0lHAstRhAzjgAA__&Key-Pair-Id=K1UT3NAZQUV8HI ) [dark] => )
==================
Echoing DECODED Arrays
Basic Example:
Array
Multidimensional Example:
Array
============
For Loop DECODED
Basic Example:
Peter is 35
Ben is 37
Joe is 43
Bob is 101
API Example:
text is Array
colours is Array
images is Array
dark is
==================