jsonify
Aren't you tired of using breakpoints and expanding all the properties to see a complete object?
Usage
Turn this:
Person person = new Person();
person.setFullName("César Ferreira");
person.setGender("male");
person.setPassword("yoloswag69");
Contact contact = new Contact(new EmailAddress("yolo@gmail.com");
person.setContact(contact, "919191919191"));
person.setLocation(new Location("Lisbon", "Texas"));
into this:
{
"contact": {
"emailAddress": {
"email": "yolo@gmail.com"
},
"phoneNumber": "919191919191"
},
"full_name": "César Ferreira",
"gender": "male",
"location": {
"city": "Lisbon",
"state": "Texas"
},
"password": "yoloswag69"
}
With just this:
JSONify.from(person)
Install
Add the dependency in the form:
dependencies {
compile 'com.cesarferreira.jsonify:jsonify:+'
}
Contributing
- Fork it ( https://github.com/cesarferreira/jsonify/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request