https://github.com/dasiyes/ivmjv
Validates a string if it matches a valid JSON object. Respects RFC8259
https://github.com/dasiyes/ivmjv
dart json validation
Last synced: about 2 months ago
JSON representation
Validates a string if it matches a valid JSON object. Respects RFC8259
- Host: GitHub
- URL: https://github.com/dasiyes/ivmjv
- Owner: dasiyes
- License: mit
- Created: 2020-11-22T12:07:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T23:29:19.000Z (over 5 years ago)
- Last Synced: 2025-10-23T06:53:12.371Z (9 months ago)
- Topics: dart, json, validation
- Language: Dart
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ivmJV
**ivmJV** is a tool to validate string as JSON object.
The tool will respect [RFC8259], but I have not thoroughly tested it to complain in full with the standard.
# Install
```yaml
dependencies:
ivmjv: any
```
Run `pub get`
# Example
To test a string if it can be a valid JSON object, import the library,
create an instance of `JsonValidator` class and pass the string to be tested as initial parameter.
```dart
void main() {
JsonValidator iv = JsonValidator("{\"amount\": 100.00}");
print('valid?: ${iv.validate()}');
}
```