Started doing some GISTS around Java 18., The new String text block to convert String objects to a JSON string., here is the quick GIST
package me.sathish;
public class Main {
public static void main(String[] args) {
String simpleJSONData = """
{
"fullName": "%s",
"aadress": "%s",
"title": "%s"
}
""";
System.out.println(simpleJSONData.formatted("Sathish Jayapal", "18 Java version lane", "awesome"));
}
}