public class UDFJson extends UDF
Constructor and Description |
---|
UDFJson() |
Modifier and Type | Method and Description |
---|---|
Text |
evaluate(java.lang.String jsonString,
java.lang.String pathString)
Extract json object from a json string based on json path specified, and
return json string of the extracted json object.
|
getRequiredFiles, getRequiredJars, getResolver, setResolver
public Text evaluate(java.lang.String jsonString, java.lang.String pathString)
jsonString
- the json string.pathString
- the json path expression.Copyright © 2012 The Apache Software Foundation