Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorishermans/jsonify
A library useful for objects to serialize it and make a json represention of it
https://github.com/jorishermans/jsonify
Last synced: 10 days ago
JSON representation
A library useful for objects to serialize it and make a json represention of it
- Host: GitHub
- URL: https://github.com/jorishermans/jsonify
- Owner: jorishermans
- License: bsd-3-clause
- Created: 2014-12-07T10:56:26.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-17T22:04:58.000Z (about 6 years ago)
- Last Synced: 2023-08-20T22:28:58.579Z (over 1 year ago)
- Language: Dart
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonify
A library that helps a developer to turn a object into a json representation
## Usage
First of all you can create an object like this:
class Book extends Object with Jsonify {
@JsonProperty("author-name")
String author;
String title;
@JsonIgnore()
String isbn;
Book(this.author, this.title, this.isbn);
}Then you can create an object and encode it into json:
Book book = new Book("JK Rowling", "Harry Potter", "1232213343221");
var jsonBook = jsonEncode(book);## Contributing
If you found a bug, just create a new issue or even better fork and issue a
pull request with you fix.