An easy way to create and access JSON Files!

Related tags

App kotlin java
Overview

https://github.com/SpreestDev/SpreestDev/blob/main/jsonfile-logo.png


JsonFile

This is the JsonFile API, this class is meant to facilitate the process of creating and accessing a JSON file

UPDATES

Updates

Version About Can get it
V1.4.7 Fixed bug about JsonUrl
V1.4.6 JsonUrl added
V1.4.4 Added automated Directory creation
V1.4.3 Dependecy support added

Descriptions

V1.4.7 Bug fix and release

V1.4.6 Added the possibility to convert Json files fron url to a JsonFile class

V1.4.4 Added automated directory creation, to prevent any errors

V1.4.3 Dependecy support, so you can use JsonFile in your project

Project Implementation

MAVEN

Repository

<repositories>
   <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
   </repository>
</repositories>

Dependency

<dependency>
      <groupId>com.github.SpreestDev</groupId>
      <artifactId>JsonFile</artifactId>
      <version>V1.4.7</version>
</dependency>

GRADLE

Repository

allprojects {
   repositories {
      maven { url 'https://jitpack.io' }
   }
}

Dependency

dependencies {
   implementation 'com.github.SpreestDev:JsonFile:V1.4.7'
}

How to start

Initialization of the class:

JAVA

 JsonFile file = new JsonFile("file");
 Map<String, Object> defaults = new HashMap<String, Object>() {
    {
      put("a", "1");
      put("b", "2");
      put("c", "3");
      put("d", "4");
      put("e", "5");
      put("f", "6");
    }
};

if(!file.exists()) {
  file.create((HashMap<String, Object>) defaults);
}

System.out.println(file.getString("a"));

KOTLIN

val file2 = JsonFile("file")
val defaults = hashMapOf<String, Any>(
    "a" to "1",
    "b" to "2",
    "c" to "3",
    "d" to "4",
    "e" to "5",
    "f" to "6"
)
    
if (!file2.exists()) {
  file2.create(defaults)
}

println(file2["a"])

To get a class:

JAVA

JsonFile file = new JsonFile("file");
Car car = (Car) file.getObject("obj", Car.class);

assert car != null;
System.out.println(car.getModel());

KOTLIN

val file = JsonFile("file")
val car = (file.getObject("obj", Car::class.java) as Car?)!!

println(car.model)

More updates to the wiki will come soon 🔜 !

Features Upcoming

  • Automate directory creation
  • Read json url
You might also like...
The easy way to use biometric authentication in your Flutter app. Supports Fingerprint, FaceID and Iris.
The easy way to use biometric authentication in your Flutter app. Supports Fingerprint, FaceID and Iris.

BiometricX The easy way to use biometric authentication in your Flutter app. Supports Fingerprint, FaceID and Iris. Demo APK. Starting $ flutter pub a

Simple access to Firebase Realtime Database.

FbRemoteDb Simple access to Firebase Realtime Database. Everything is inside a Bucket, there you can store your items. This is for simplifying the acc

Aplikasi-Kuliner-Jowo - Beta Access Aplikasi Kuliner Jowo (v1.1.0 BETA 1)
Aplikasi-Kuliner-Jowo - Beta Access Aplikasi Kuliner Jowo (v1.1.0 BETA 1)

Kuliner-Jowo Kuliner Jowo merupakan aplikasi resep masakan khas jawa yang dapat

A liteweight Android application to access your hanger!
A liteweight Android application to access your hanger!

星河避难所 这是一个星际公民 Android 客户端,可以简化部分官网操作以及信息查询。 A Star Citizen Android Application. 实现功能 官网登录相关 免代理登录/注册 多账号一键切换 光谱账号一键切换 官网信息相关 玩家个人信息显示 官网玩家查询 舰船信息查询 玩

MEGA Android Client - A fully-featured client to access your Cloud Storage provided by MEGA

A fully-featured client to access your Cloud Storage provided by MEGA. This document will guide you to build the application on a Linux machine with Android Studio.

an android app to send private secret SMS while terrorist Islamic republic of Iran banned internet access in Iran.

Mahsa An android application which is designed to deliver safe and encrypted messages using SMS while Islamic republic of Iran banned Iranian people a

 A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library.
A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library.

Expo Music Picker A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library. Supp

Restaurants - A simple app which displays a list of restaurants from a stored JSON, ordered by opening status, favorites and filter chosen from the dropdown

Restaurants - A simple app which displays a list of restaurants from a stored JSON, ordered by opening status, favorites and filter chosen from the dropdown

A Android Web IDE supports code auto-completion and highlight, plugin (Supports Html, Css, JS, Json, Php etc)

WebDevOps A Android Web IDE supports code auto-completion and highlight, plugin (Supports Html, Css, JS, Json, Php etc) Join us QQ group number: 10314

Releases(V1.4.8)
Owner
Next
Am a Italian Teenager in high school, i am interested in game development, and right now i am learning java by creating minecraft server plugins.
Next
An E-Commerce android App whose frontend is implemented using Kotlin & XML files and backend/database is implemented using My SQL & PHP files

An E-Commerce android App whose frontend is implemented using Kotlin & XML files and backend/database is implemented using My SQL & PHP files

null 4 Aug 25, 2022
ICSx⁵ is an Android app to subscribe to remote or local iCalendar files (like time tables of your school/university or event files of your sports team).

ICSx⁵ ICSx⁵ is an Android app to subscribe to remote Webcal feeds / iCalendar files (like time tables of your school/university or event files of your

bitfire web engineering 52 Nov 24, 2022
Easy app for managing your files without ads, respecting your privacy & security

Simple File Manager Can also be used for browsing root files and SD card content. You can easily rename, copy, move, delete and share anything you wis

Simple Mobile Tools 1.1k Nov 25, 2022
The easiest way to create a dashed or striped background on Android 🐝

DashedView The easiest way to create a dashed or striped background on Android The DashedView library allows you to create views with a dashed (or str

null 59 Oct 3, 2022
A general purpose kotlin library that use kotlin coroutines, flows and channels to provide timer features with the most easy and efficient way

Timer Timer is a general purpose kotlin library that use kotlin coroutines, flows and channels to provide timer features with the most easy and effici

Amr Saraya 3 Jul 11, 2022
android-delicious Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play.

Delicious Android Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play. Fea

Alexander Blom 137 Nov 20, 2022
Android app built with MVP architectural approach and uses Marvel Comics API that allows developers everywhere to access information about Marvel's vast library of comics. :zap:

Villains & Heroes Android app built with MVP architectural approach and uses Marvel Comics API that allows developers everywhere to access information

André Mion 53 Jul 13, 2022
NativeScript empowers you to access native platform APIs from JavaScript directly. Angular, Capacitor, Ionic, React, Svelte, Vue and you name it compatible.

NativeScript empowers you to access native APIs from JavaScript directly. The framework currently provides iOS and Android runtimes for rich mobile de

NativeScript 21.8k Nov 27, 2022
NetGuard provides simple and advanced ways to block access to the internet

NetGuard NetGuard provides simple and advanced ways to block access to the internet - no root required. Applications and addresses can individually be

Marcel Bokhorst 529 Nov 21, 2022
This is a Interview application which made by me in interview task what it do? that will give you the result from Api and also save data in the cache using RoomDb so that we can access it offline.

Clean-MVVM-App An Android application built using Clean + MVVM architecture. Components used in the app. Kotlin - As a programming language. Material

Android1500 2 Oct 29, 2022