tsg-client.pl JSON adapted