Update code to execute JSON call