Question

Converting [ to {

  • 26 August 2022
  • 1 reply
  • 32 views

In a json file, I need to replace [  with{ in between json file, How to achieve that using exp evaluator

 

Example: { "student": [ { "id":"01", "name": "Tom", "lastname": "Price" }, { "id":"02", "name": "Nick", "lastname": "Thameson" } ]}

 

to

{ "student": { { "id":"01", "name": "Tom", "lastname": "Price" }, { "id":"02", "name": "Nick", "lastname": "Thameson" } }}


1 reply

Userlevel 4
Badge

@Priyanka Mynepally, assuming you have a field that holds you json data, you can use expression evaluator to create or replace the json data field.

 

User str:replace() function 

Reply