Created
March 24, 2022 04:11
-
-
Save sathishjayapal/9e9e4f080ebe3d2adee39748e8598e3c to your computer and use it in GitHub Desktop.
Java 18 JSON String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is cool from Java 18