Error: Improper JSON formatting

So I want to send an object through SocketIO as a JSON object, but unity gives an error improper JSON formatting:0.0 and sends null instead of the data from the object

The object I want to send:

[Serializable] public class Player { public string id = "0"; public Position position; }

Sending the object:

networkIdentity.GetSocket().Emit("updatePosition", new JSONObject(JsonUtility.ToJson(player)));

If anyone knows how to solve this please let me know.

i have exactly same problem too now ! :(((((((((((((((((((