import json


async def insert(ctx, *, data: str):
    """Insert a document."""
    try:
        j = json.loads(data)
    except:
        return await ctx.send('Failed to parse JSON')

    res = await ctx.bot.storcord.insert_one(j)
    await ctx.send(res)