FIX: Accept params in the POST body as JSON

When creating a token accept params passed as JSON in the POST body