Bug with id

id has to be a string due to issue when converting from php to json