Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Ky | 9,094 | 875 | 260 | 5 days ago | 53 | September 03, 2022 | 44 | mit | TypeScript | |
🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API | ||||||||||
Wretch | 3,788 | 48 | 56 | 10 days ago | 52 | September 27, 2022 | 1 | mit | TypeScript | |
A tiny wrapper built around fetch with an intuitive syntax. :candy: | ||||||||||
Vue Json Excel | 617 | 52 | 28 | a year ago | 43 | October 05, 2020 | 66 | mit | Vue | |
Fakerest | 399 | 141 | 29 | 7 days ago | 25 | March 29, 2021 | 5 | mit | JavaScript | |
Patch fetch/XMLHttpRequest to fake a REST API server in the browser, based on JSON data. | ||||||||||
Ffq | 378 | 5 months ago | 9 | May 05, 2022 | mit | Python | ||||
A tool to find sequencing data and metadata from public databases. | ||||||||||
Dms | 152 | a year ago | 22 | mit | JavaScript | |||||
基于Json Schema的动态Json数据配置平台 | ||||||||||
Fetch Polyfill | 140 | 14 | 2 | 6 years ago | 3 | November 01, 2016 | 3 | JavaScript | ||
fetch polyfill which supports all mainstream browsers, even IE6, IE7, IE8..... | ||||||||||
Fetch Plus | 116 | 33 | 12 | 3 years ago | 20 | November 21, 2016 | 30 | other | JavaScript | |
🐕 Fetch+ is a convenient Fetch API replacement with first-class middleware support. | ||||||||||
Vanilla Js | 100 | a year ago | 1 | JavaScript | ||||||
Projects using pure JavaScript without any external libraries or frameworks | ||||||||||
Hades | 93 | 4 years ago | 1 | mit | Go | |||||
Hades is a hypermedia-based HTTP/2 reverse proxy for JSON:API servers. |
Android library for displaying data based on JSON configuration fetched from server.
With this library, you can kiss goodbye to string.xml, dimen.xml, arrays.xml. Keep all your string/integer/array config in one file. The library will automatically fetch the data from the url you provide.
For example, in the sample app, you will see the url that I have given is https://s3-ap-southeast-1.amazonaws.com/android-optimize/optimize.json This is used to fetch my data from the backend asynchrously and cache it in app. Everytime the app is opened the data is fetched and based on the whether the content is changed or not, the data is cached locally. Note: The library is implemented using the Work Manager API provided by Google.
Gradle Dependecy
dependencies {
implementation 'com.an.optimize:optimize:0.1.0'
}
Maven Dependecy
<dependency>
<groupId>com.an.optimize</groupId>
<artifactId>optimize</artifactId>
<version>0.1.0</version>
<type>pom</type>
</dependency>
<uses-permission android:name="android.permission.INTERNET" />
Step 2: Add the following code to your Application class or your Main Activity file
Optimize.getInstance().init(getApplicationContext(), "<Add the url of the json file>");
Step 3: All you have to do now to display a value from the json file is to call the below code
String stringData = Optimize.getInstance().getStringValue("<the name of the param key>", "<Default value to be displayed in case the backend data does not contain this key>");
//The same can be applied for Integers:
Optimize.getInstance().getIntegerValue("<the name of the param key>", <Default value in case the backend data does not contain this key>);
//The same can be applied for Double:
Double doubleData = Optimize.getInstance().getDoubleValue("<the name of the param key>", 0.00);
//The same can be applied for Boolean:
Boolean booleanData = Optimize.getInstance().getBooleanValue("boolean_data", false);
//The same can be applied for Number:
Number floatData = Optimize.getInstance().getNumberValue("float_data", -1.1);
//The same can be applied for a List:
List<String> listData = Optimize.getInstance().getList("list_data", Collections.emptyList());
And that's it! It's super simple.