jsonata_flutter 0.0.2 copy "jsonata_flutter: ^0.0.2" to clipboard
jsonata_flutter: ^0.0.2 copied to clipboard

A Flutter package that enables the use of JSONata expressions in mobile applications. It provides a bridge to evaluate JSONata queries on JSON data within Flutter apps.

JsonAta Flutter #

Instalation #

dependencies:
  jsonata_flutter: ^0.0.2

Android #

Add Android dependency implementation "com.github.fast-development.android-js-runtimes:fastdev-jsruntimes-jsc:0.3.4"

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Setup of proguard to release builds: setup your android/app/proguard-rules.pro file with the content bellow.

Remember to merge with another configurations needed for others plugins your app uses.

#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.**  { *; }
-keep class io.flutter.util.**  { *; }
-keep class io.flutter.view.**  { *; }
-keep class io.flutter.**  { *; }
-keep class io.flutter.plugins.**  { *; }
-keep class de.prosiebensat1digital.** { *; }

Also add these lines to your android -> buildTypes -> release section of android/app/build.gradle file:

 minifyEnabled true
  useProguard true

  proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

Usage #

var jsonAta = JsonAta();
var result = await jsonAta.execute(
  expression: "$.name",
  jsonData: '{"name": "John Doe"}'
);
print(result); // Result: John Doe```
3
likes
135
points
132
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that enables the use of JSONata expressions in mobile applications. It provides a bridge to evaluate JSONata queries on JSON data within Flutter apps.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_js

More

Packages that depend on jsonata_flutter