Reworked JSON for external server

upgraded JSON to be ready to use an external server