Canvas library with JSON