COmmonAPI, iOS, fix conversion to JSON