Error parseJSON() not necessary in UI

Wappler Version : 5.5.0
Operating System : Windows 11
Server Model: NodejS
Database Type: MariaDB
Hosting Type: local/Docker

After install new version I get this error:

And I realize that in this new version I don’t need any more to use parseJSON() in formatter in UI:

Before:

<div class="col">
     <div class="form-check">
      <input class="form-check-input" type="checkbox" id="inp_notificaciones_internas" name="notificaciones_internas" dmx-bind:checked="sc_adm_info_user.data.query_info_user[0].userNotificaciones.parseJSON().notificaciones.internas==1" value="1">
      <label class="form-check-label" for="input1">Internas</label>
     </div>
</div>

New version 5.5.0:

<div class="col">
     <div class="form-check">
      <input class="form-check-input" type="checkbox" id="inp_notificaciones_internas" name="notificaciones_internas" dmx-bind:checked="sc_adm_info_user.data.query_info_user[0].userNotificaciones.notificaciones.internas==1" value="1">
      <label class="form-check-label" for="input1">Internas</label>
  </div>

I see that now the JSON is parsing correctly, but I really don’t know if this is a good or bad, because this change now means to me to check every page and remove parseJSON() in formatters.

Looks like this change doesn’t apply to only SQLite.

image

Please, this will be permanent or in next update I will have to change again.

There was indeed a bug with SQLite that it didn’t return the JSON fields correctly. The parseJSON is not needed in your expressions.

1 Like