Updated add push id call to accept json instead of the string.

Since the client side library doesn't deal with string inputs and then json outputs, only both json, and it's quicker just to change this.