Add json build task, add integration test