Adds JSONPrimitive member to a JSON object.
The JSON primitive on the host class needs to be actually JSON object for this method to work.
You can only attach primitives that have not been attached before. If you really need to re-attach already used primitive then use the Clone function first to deep clone it.