How to use json in update script

See this