Class Utils
java.lang.Object
com.dashjoin.jsonata.Utils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classList representing an int range [a,b] Both sides are included. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic ObjectconvertNulls(Object res) Converts all occurrences ofJsonata.NULL_VALUEin the given object to nullstatic NumberCreate an empty sequence to contain query resultscreateSequence(Object el) static booleanstatic booleanstatic booleanisFunction(Object o) static booleanstatic booleanisSequence(Object result) static voidquote(String string, StringBuilder w) adapted from org.json.JSONObject https://github.com/stleary/JSON-java
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
isNumeric
-
isArrayOfStrings
-
isArrayOfNumbers
-
isFunction
-
createSequence
-
createSequence
-
isSequence
-
convertNumber
-
checkUrl
-
convertNulls
Converts all occurrences ofJsonata.NULL_VALUEin the given object to null- Parameters:
res- Result object which might contain NULL_VALUEs- Returns:
- The same object with NULL_VALUEs replaced with null
-
quote
adapted from org.json.JSONObject https://github.com/stleary/JSON-java
-