first go at json converter