Package org.citrusframework.json
Class JsonStringBuilder
java.lang.Object
org.citrusframework.json.JsonStringBuilder
- All Implemented Interfaces:
JsonNodeStringBuilder
String builder able to generate proper Json Strings from pure String concatenation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()withProperty(String name) withProperty(String name, long value) withProperty(String name, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.citrusframework.json.JsonNodeStringBuilder
withArray, withPropertyEscaped
-
Constructor Details
-
JsonStringBuilder
public JsonStringBuilder()
-
-
Method Details
-
append
- Specified by:
appendin interfaceJsonNodeStringBuilder
-
withObject
- Specified by:
withObjectin interfaceJsonNodeStringBuilder
-
closeObject
- Specified by:
closeObjectin interfaceJsonNodeStringBuilder
-
withArray
- Specified by:
withArrayin interfaceJsonNodeStringBuilder
-
withArray
- Specified by:
withArrayin interfaceJsonNodeStringBuilder
-
closeArray
- Specified by:
closeArrayin interfaceJsonNodeStringBuilder
-
withProperty
- Specified by:
withPropertyin interfaceJsonNodeStringBuilder
-
withProperty
- Specified by:
withPropertyin interfaceJsonNodeStringBuilder
-
withProperty
- Specified by:
withPropertyin interfaceJsonNodeStringBuilder
-
prettyPrint
-
toString
-