Changed from bash curl to JSON module