File tree 3 files changed +12
-3
lines changed
src/main/java/com/github/webee/json
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ To install the library add:
15
15
maven { url "https://jitpack.io" }
16
16
}
17
17
dependencies {
18
- compile 'com.github.webee:java-json-api:v1.3.1 '
18
+ compile 'com.github.webee:java-json-api:v1.4.0 '
19
19
}
20
20
```
Original file line number Diff line number Diff line change 1
1
package com .github .webee .json ;
2
2
3
+ import java .math .BigDecimal ;
4
+ import java .math .BigInteger ;
5
+
3
6
/**
4
7
* Created by webee on 16/11/25.
5
8
*/
@@ -12,9 +15,11 @@ public interface JSONArray {
12
15
Object [] get ();
13
16
Object get (int index );
14
17
Boolean getBoolean (int index );
18
+ BigDecimal getBigDecimal (int index );
19
+ BigInteger getBigInteger (int index );
20
+ Double getDouble (int index );
15
21
Integer getInteger (int index );
16
22
Long getLong (int index );
17
- Double getDouble (int index );
18
23
String getString (int index );
19
24
JSONArray getArray (int index );
20
25
JSONObject getObject (int index );
Original file line number Diff line number Diff line change 1
1
package com .github .webee .json ;
2
2
3
+ import java .math .BigDecimal ;
4
+ import java .math .BigInteger ;
3
5
import java .util .Map ;
4
6
import java .util .Set ;
5
7
@@ -16,9 +18,11 @@ public interface JSONObject {
16
18
Map <String , Object > get ();
17
19
Object get (String key );
18
20
Boolean getBoolean (String key );
21
+ BigDecimal getBigDecimal (String key );
22
+ BigInteger getBigInteger (String key );
23
+ Double getDouble (String key );
19
24
Integer getInteger (String key );
20
25
Long getLong (String key );
21
- Double getDouble (String key );
22
26
String getString (String key );
23
27
JSONArray getArray (String key );
24
28
JSONObject getObject (String key );
You can’t perform that action at this time.
0 commit comments