sendiing position values as json instead of string