类 JsonParser
- java.lang.Object
-
- tech.testnx.cah.common.ws.JsonParser
-
public class JsonParser extends Object
- 作者:
- Yun
-
-
构造器概要
构造器 构造器 说明 JsonParser(com.fasterxml.jackson.databind.JsonNode jsonBody)JsonParser(String stringBody)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleangetBooleanValue(String path)Get a boolean value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]doublegetDoubleValue(String path)Get a double value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]intgetIntValue(String path)Get an int value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]longgetLongValue(String path)Get a long value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]List<com.fasterxml.jackson.databind.JsonNode>getNodeList(String path)Get the json node list by path like "aa.bb.cc" Example path from aa to bb to cc: aa.bb.cc
Example path from aa to array[0] to cc: aa.0.cc
Example path from aa to bb to array[9]: aa.bb.9StringgetStringValue(String path)Get a string value of json node by path like "aa.bb.cc"
Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]
-
-
-
构造器详细资料
-
JsonParser
public JsonParser(String stringBody)
-
JsonParser
public JsonParser(com.fasterxml.jackson.databind.JsonNode jsonBody)
-
-
方法详细资料
-
getStringValue
public String getStringValue(String path)
Get a string value of json node by path like "aa.bb.cc"
Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]
-
getBooleanValue
public boolean getBooleanValue(String path)
Get a boolean value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]
-
getIntValue
public int getIntValue(String path)
Get an int value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]
-
getLongValue
public long getLongValue(String path)
Get a long value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]
-
getDoubleValue
public double getDoubleValue(String path)
Get a double value of json node by path like "aa.bb.cc" Example path from aa to bb to cc: using aa.bb.cc
Example path from aa to array[0] to cc: using aa.0.cc OR aa[0].cc
Example path from aa to bb to array[9]: using aa.bb.9 OR aa.bb[9]
-
-