Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/68f8875ddf99dce56ab7df9323bab945 to your computer and use it in GitHub Desktop.
Save trycf/68f8875ddf99dce56ab7df9323bab945 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
arr = [];
arr[1] = {"position":"prof","category":
{"id":"1","name":"jhon"},"age":23};
dump(arr);
categoryname = arr[1].category.name;
categoryid = arr[1].category.id;
arr[1].category.name = "joe";
dump(arr);
dump(categoryname);
dump(categoryid);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment