|
|
@ -13,10 +13,9 @@ class AnalyzeByJSonPath { |
|
|
|
private lateinit var ctx: ReadContext |
|
|
|
private lateinit var ctx: ReadContext |
|
|
|
|
|
|
|
|
|
|
|
fun parse(json: Any): AnalyzeByJSonPath { |
|
|
|
fun parse(json: Any): AnalyzeByJSonPath { |
|
|
|
ctx = if (json is String) { |
|
|
|
ctx = when (json) { |
|
|
|
JsonPath.parse(json) |
|
|
|
is String -> JsonPath.parse(json) |
|
|
|
} else { |
|
|
|
else -> JsonPath.parse(json) |
|
|
|
JsonPath.parse(json) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return this |
|
|
|
return this |
|
|
|
} |
|
|
|
} |
|
|
|