Add the full UID string to the JSON API too, fixes #313