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=1725838837&Signature=VR2jWBhzzTRq~uoZd6-YfqxV6GIOt7Z-MY1NFpgPye1R1wtiUuzr4QqydIx7QzyzkEemhiP0mWSLde431uXd79GdvBPdw73lk7QNZm6fV3hNPv~Dl9rxrRfQy88S27zUOYd5V~h3Ro1sCMvx-UM-IZ6uxV1Q6u7silmMV-cJ7dHYinnGPjcOyg3P8430PARE1uI7L3qSWLFFvlqDML8Eh8T50LUaC25nL05gkCfWZYUzKkuMaMVH6k1sxZTip0nbi2C~zoV9orlGPbuKhD2mT0r2nkk97e7KYcclgQ6Msc1ecHPaJ43VL7U1Vz1gUaHEk~dXWF6TcCUg1sDHU~CgJQ__&Key-Pair-Id=K1UT3NAZQUV8HI", "favicon": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/247c510e9630406e98e981050120a418-ffe254cf136845e487257bd8c45fa3ab.png?Expires=1725838837&Signature=eMNnkzMKWkNGaSFOAXSN73AHPXpN2ybjVDHn9yY12mMeSDqNwu2Eb6T4SQ~mC6RAJwqQezxpZTKcJmkjo8Zh0c9FheevnaGh7suBWMnIOFo~tGC5cEqW8jPhgvIXeMoxxtvX-pDoUe7iYBB80cLrstbzhJoO7OZL6OXOveBQ-DDkW3pSUQ0tANbN1OiIAokFgHfmFeqt~Cfq4JIPU8t31VGqyR2xhJm8d4-~upb~xqMXCAm4QTKE2owmnoLVHEWvQ~ADYYi0Hcc63liuzywGplfqezrQTDakN4fePnhTrsBXZNnW9d5vkr4DvDMaqldQ1YJR2tZML~w2z7uo6nVGfQ__&Key-Pair-Id=K1UT3NAZQUV8HI", "logo": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/20f5ab6d-34fa-412b-98fd-7197f1f60d3d.svg?Expires=1725838837&Signature=BtdFGmtJLhGKIoHwdYsq0bJXeg~ta7pVHa-Hw5QYPUeZ~TiDe0o5Tb~0fiM7WRhCNurZ6dGVT8CeWlDbxjUniLBsa~j4ZYaIV5IHijBzm2bYBYw0v~i6yAs89-pq~9ZYNe9~hpT-PmoHoaMjuEUzsxebSo77kZ~Cd6kIUR5PfdmTHAQrueEOz1CVKe-iItDa~UcgnkrGD-xLR3DvgDiBUaMHUzJaY1alMh83IJ0VELLke~UkRIav5fwRB7akWnO5zYgre7uDlDgEyF1SLgckUS73Dz1X5r-BD3dtc-xZe6VhZgPDmiuTwgihLbcf-aBWuXuSl3BDNCv34anlOTBzSQ__&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=1725838837&Signature=VR2jWBhzzTRq~uoZd6-YfqxV6GIOt7Z-MY1NFpgPye1R1wtiUuzr4QqydIx7QzyzkEemhiP0mWSLde431uXd79GdvBPdw73lk7QNZm6fV3hNPv~Dl9rxrRfQy88S27zUOYd5V~h3Ro1sCMvx-UM-IZ6uxV1Q6u7silmMV-cJ7dHYinnGPjcOyg3P8430PARE1uI7L3qSWLFFvlqDML8Eh8T50LUaC25nL05gkCfWZYUzKkuMaMVH6k1sxZTip0nbi2C~zoV9orlGPbuKhD2mT0r2nkk97e7KYcclgQ6Msc1ecHPaJ43VL7U1Vz1gUaHEk~dXWF6TcCUg1sDHU~CgJQ__&Key-Pair-Id=K1UT3NAZQUV8HI", "favicon": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/247c510e9630406e98e981050120a418-ffe254cf136845e487257bd8c45fa3ab.png?Expires=1725838837&Signature=eMNnkzMKWkNGaSFOAXSN73AHPXpN2ybjVDHn9yY12mMeSDqNwu2Eb6T4SQ~mC6RAJwqQezxpZTKcJmkjo8Zh0c9FheevnaGh7suBWMnIOFo~tGC5cEqW8jPhgvIXeMoxxtvX-pDoUe7iYBB80cLrstbzhJoO7OZL6OXOveBQ-DDkW3pSUQ0tANbN1OiIAokFgHfmFeqt~Cfq4JIPU8t31VGqyR2xhJm8d4-~upb~xqMXCAm4QTKE2owmnoLVHEWvQ~ADYYi0Hcc63liuzywGplfqezrQTDakN4fePnhTrsBXZNnW9d5vkr4DvDMaqldQ1YJR2tZML~w2z7uo6nVGfQ__&Key-Pair-Id=K1UT3NAZQUV8HI", "logo": "https:\/\/platformcdn.staging.growthinvest.com\/branding\/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf\/20f5ab6d-34fa-412b-98fd-7197f1f60d3d.svg?Expires=1725838837&Signature=BtdFGmtJLhGKIoHwdYsq0bJXeg~ta7pVHa-Hw5QYPUeZ~TiDe0o5Tb~0fiM7WRhCNurZ6dGVT8CeWlDbxjUniLBsa~j4ZYaIV5IHijBzm2bYBYw0v~i6yAs89-pq~9ZYNe9~hpT-PmoHoaMjuEUzsxebSo77kZ~Cd6kIUR5PfdmTHAQrueEOz1CVKe-iItDa~UcgnkrGD-xLR3DvgDiBUaMHUzJaY1alMh83IJ0VELLke~UkRIav5fwRB7akWnO5zYgre7uDlDgEyF1SLgckUS73Dz1X5r-BD3dtc-xZe6VhZgPDmiuTwgihLbcf-aBWuXuSl3BDNCv34anlOTBzSQ__&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=1725838837&Signature=VR2jWBhzzTRq~uoZd6-YfqxV6GIOt7Z-MY1NFpgPye1R1wtiUuzr4QqydIx7QzyzkEemhiP0mWSLde431uXd79GdvBPdw73lk7QNZm6fV3hNPv~Dl9rxrRfQy88S27zUOYd5V~h3Ro1sCMvx-UM-IZ6uxV1Q6u7silmMV-cJ7dHYinnGPjcOyg3P8430PARE1uI7L3qSWLFFvlqDML8Eh8T50LUaC25nL05gkCfWZYUzKkuMaMVH6k1sxZTip0nbi2C~zoV9orlGPbuKhD2mT0r2nkk97e7KYcclgQ6Msc1ecHPaJ43VL7U1Vz1gUaHEk~dXWF6TcCUg1sDHU~CgJQ__&Key-Pair-Id=K1UT3NAZQUV8HI [favicon] => https://platformcdn.staging.growthinvest.com/branding/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf/247c510e9630406e98e981050120a418-ffe254cf136845e487257bd8c45fa3ab.png?Expires=1725838837&Signature=eMNnkzMKWkNGaSFOAXSN73AHPXpN2ybjVDHn9yY12mMeSDqNwu2Eb6T4SQ~mC6RAJwqQezxpZTKcJmkjo8Zh0c9FheevnaGh7suBWMnIOFo~tGC5cEqW8jPhgvIXeMoxxtvX-pDoUe7iYBB80cLrstbzhJoO7OZL6OXOveBQ-DDkW3pSUQ0tANbN1OiIAokFgHfmFeqt~Cfq4JIPU8t31VGqyR2xhJm8d4-~upb~xqMXCAm4QTKE2owmnoLVHEWvQ~ADYYi0Hcc63liuzywGplfqezrQTDakN4fePnhTrsBXZNnW9d5vkr4DvDMaqldQ1YJR2tZML~w2z7uo6nVGfQ__&Key-Pair-Id=K1UT3NAZQUV8HI [logo] => https://platformcdn.staging.growthinvest.com/branding/b7c0ee5d-c760-4c3c-9959-15ed4a94ebdf/20f5ab6d-34fa-412b-98fd-7197f1f60d3d.svg?Expires=1725838837&Signature=BtdFGmtJLhGKIoHwdYsq0bJXeg~ta7pVHa-Hw5QYPUeZ~TiDe0o5Tb~0fiM7WRhCNurZ6dGVT8CeWlDbxjUniLBsa~j4ZYaIV5IHijBzm2bYBYw0v~i6yAs89-pq~9ZYNe9~hpT-PmoHoaMjuEUzsxebSo77kZ~Cd6kIUR5PfdmTHAQrueEOz1CVKe-iItDa~UcgnkrGD-xLR3DvgDiBUaMHUzJaY1alMh83IJ0VELLke~UkRIav5fwRB7akWnO5zYgre7uDlDgEyF1SLgckUS73Dz1X5r-BD3dtc-xZe6VhZgPDmiuTwgihLbcf-aBWuXuSl3BDNCv34anlOTBzSQ__&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
==================