Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/78c22d52da818c1c8649c01d24241bac to your computer and use it in GitHub Desktop.

Select an option

Save trycf/78c22d52da818c1c8649c01d24241bac to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset jsonVal = '{"ull": false, "Type": "jsonb", "Value": "{\"items\": [{\"id\": \"home\", \"url\": \"/\", \"label\": \"Home\"}, {\"id\": \"about\", \"url\": \"/about\", \"label\": \"About Us\"}, {\"id\": \"services\", \"url\": \"/services\", \"label\": \"Services\"}, {\"id\": \"blog\", \"url\": \"/blog\", \"label\": \"Blog\"}, {\"id\": \"contact\", \"url\": \"/contact\", \"label\": \"Contact\"}], \"version\": 5}"}'>
<cfset deserval = deserializeJSON(jsonVal)>
<cfdump var="#deserval.value#">
<cfdump var="#jsonVal#">
<cfdump var="#deserializeJSON(jsonVal)#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment