1. JSON object format templates in. Net
// JSON key-value pair format: ' Key ': ' Value '
Public Static stringFormat_keyvalue ="\ "{0}\": \ "{1}\"";
// JSON key-value pair format: ' Key ': ' Value '
Public Static stringFormat_keyvalue2 ="\ ' {0}\ ': {1}";
// JSON Object format: {content}
Public Static stringFormat_jsonobject ="{{0}}}";
// JSON array format: [Items]
Public Static stringFormat_jsonarrary ="[{0}]";
2. JSON object Format template in Java
//JSON key-value pair format: ' Key ': ' Value ' Public Static FinalString format_keyvalue = "\"%s\ ": \"%s\ "";//JSON key-value pair format: ' Key ': ' Value ' Public Static FinalString format_keyvalue2 = "\"%s\ ":%s"; //JSON Object format: {content} Public Static FinalString Format_jsonobject = "{%s}"; //JSON array format: [Items] Public Static FinalString format_jsonarrary = "[%s]";
. NET and Java JSON templates