The SerializeToElement XML documentation states that it returns a `JsonDocument` when it actually returns a `JsonElement`. I can try creating a PR for improving the documentation.