Package org.bedework.util.json
Class JsonUtil
java.lang.Object
org.bedework.util.json.JsonUtil
- Version:
- 1.0 A number of bitty utility routines.
- Author:
- Mike Douglass
-
Method Summary
-
Method Details
-
jsonEncode
Encode a json string according to the statement:In JSON only the backslash, double quote and ASCII control characters need to be escaped. Forward slashes may be escaped
I assume we also need to do the whitespace characters
- Parameters:
val- to encode- Returns:
- encoded String
-
jsonNameVal
Encode a json name and value for output- Parameters:
indent- initial spacename- of fieldval- and value- Returns:
- encoded String
-
must
- Throws:
Exception
-
may
- Throws:
Exception
-
mustList
- Throws:
Exception
-
mayList
- Throws:
Exception
-