# Remove ellipsis character in expression

**URL:** <https://forum.inductiveautomation.com/t/remove-ellipsis-character-in-expression/87692>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 21, 2024, 2:44pm UTC](https://forum.inductiveautomation.com/t/remove-ellipsis-character-in-expression/87692 "2024-03-21T14:44:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakned](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakned](https://forum.inductiveautomation.com/u/jakned)\
**Post date:** [March 21, 2024, 2:44pm UTC](https://forum.inductiveautomation.com/t/remove-ellipsis-character-in-expression/87692/1 "2024-03-21T14:44:04Z")

</div>

Can anyone advise, how to remove a "…" in a expression?

`try(replace(jsonGet({[.]../API Data}, "stateText"), "…", ""), null)`

This does not work and the value stays the same.

Thanky you!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 21, 2024, 2:47pm UTC](https://forum.inductiveautomation.com/t/remove-ellipsis-character-in-expression/87692/2 "2024-03-21T14:47:53Z")

</div>

> [@jakned](#):
>
> "…"

That is a single character ellipsis. Are you sure that is what you want to search/replace?

---

<div class="post-metadata">

**Author:** ![jakned](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakned](https://forum.inductiveautomation.com/u/jakned)\
**Post date:** [March 21, 2024, 2:52pm UTC](https://forum.inductiveautomation.com/t/remove-ellipsis-character-in-expression/87692/3 "2024-03-21T14:52:13Z")

</div>

Yes sir.  
It come from the REST API like this:  
`{"countErrors":0,"countWarnings":0,"countInfos":1,"currentLabelCount":301,"totalLabelCount":1200,"currentJobCount":1,"stateText":"Printing…","errors":[],"timestamp":"2024-03-21T12:46:54.904Z"}`

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 21, 2024, 3:17pm UTC](https://forum.inductiveautomation.com/t/remove-ellipsis-character-in-expression/87692/4 "2024-03-21T15:17:41Z")

</div>

```auto
{
  "countErrors": 0,
  "countWarnings": 0,
  "countInfos": 1,
  "currentLabelCount": 301,
  "totalLabelCount": 1200,
  "currentJobCount": 1,
  "stateText": "Printing…",
  "errors": [],
  "timestamp": "2024-03-21T12:46:54.904Z"
}

```

I've never tried this before with an expression but it seems to work.

```auto
if(
	jsonGet({value}, "stateText") = "Printing…",
	jsonSet({value}, "stateText", "Printing"),
	{value}
)

```

See [Types of Tags | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/platform/tags/types-of-tags#derived-tags) which may be relevant.

* * *

Tips:

1. Use [https://jsonlint.com](https://jsonlint.com) to check JSON and to prettify it.
2. See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).
