bazaarvoice / jolt

JSON to JSON transformation library written in Java.
Apache License 2.0
1.54k stars 328 forks source link

Does Jolt have a substring and indexOf fuction #1159

Open Hamza-Houzali opened 1 year ago

Hamza-Houzali commented 1 year ago

input : { "test" : "hello_world" }

output : { "test" : "world" }

I goal is to do something like this with java;

String test = "hello_word";

System.out.println(test.substring(test.indexOf("_") + 1));

result is world.

sibasish-palo commented 1 year ago

@Hamza-Houzali you can check stringsTests.json test class for all the available operations on string