add toJson() and fromJson() functionality
version bump 0.0.5 -> 0.0.6