First hack of a JSON interface