Extracted JSON sending and set up templated targets