working on JSON request to hub