Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utility methods for getting json for individual har objects #3

Open
olensmar opened this issue May 26, 2016 · 2 comments
Open

utility methods for getting json for individual har objects #3

olensmar opened this issue May 26, 2016 · 2 comments

Comments

@olensmar
Copy link
Contributor

I'm creating HarResponse objects and want to transform them into JSON - would be great if we could have toJson() methods on all objects - or if toString() could simply return the JSON serialization...

thanks!

@prakashmrec
Copy link
Contributor

These objects are created automatically through Swagger Codegen using the Swagger Definition of TestServer API. Is there anyway we can put it into API definition OR codegen config that it can add toJson() method to these objects? Otherwise we create a generic method in client code which accept any of these objects and creates JSON string for it.

@olensmar
Copy link
Contributor Author

ah ok - then I can do it myself with jackson...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants