Skip to content

Commit d958ab7

Browse files
committed
Merge pull request #195 from jochenberger/revert-getjson
remove the get_json function
2 parents 0e9f397 + a8bc2af commit d958ab7

File tree

3 files changed

+0
-58
lines changed

3 files changed

+0
-58
lines changed

json-path/src/main/java/com/jayway/jsonpath/internal/function/PathFunctionFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.jayway.jsonpath.internal.function;
22

33
import com.jayway.jsonpath.InvalidPathException;
4-
import com.jayway.jsonpath.internal.function.http.HttpLoader;
54
import com.jayway.jsonpath.internal.function.json.Append;
65
import com.jayway.jsonpath.internal.function.numeric.Average;
76
import com.jayway.jsonpath.internal.function.numeric.Max;
@@ -42,9 +41,6 @@ public class PathFunctionFactory {
4241
// Text Functions
4342
map.put("concat", Concatenate.class);
4443

45-
// Network functions
46-
map.put("getjson", HttpLoader.class);
47-
4844
// JSON Entity Functions
4945
map.put("length", Length.class);
5046
map.put("size", Length.class);

json-path/src/main/java/com/jayway/jsonpath/internal/function/http/HttpLoader.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

json-path/src/test/java/com/jayway/jsonpath/internal/function/NestedFunctionTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ public void testStringConcatWithJSONParameter() {
6868
verifyTextFunction(conf, "$.text.concat(\"-\", \"ghijk\")", "abcdef-ghijk");
6969
}
7070

71-
@Test
72-
public void testLoadFunction() {
73-
verifyTextFunction(conf, "$.getjson($.urls[0])[0].total", 264);
74-
}
75-
7671
@Test
7772
public void testAppendNumber() {
7873
verifyMathFunction(conf, "$.numbers.append(11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 0).avg()", 10.0);

0 commit comments

Comments
 (0)