-
Notifications
You must be signed in to change notification settings - Fork 18
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
Wrong JSON output #65
Comments
the returning json contains html tags. how can i retrieve the correct json result? thank you |
So those are private variables, there should be getters that should be used. Depending on the method you are using, the documentation might help out - https://boxing.github.io/boxrec/classes/boxrec.html There are examples of each method being used in the E2E test file located here - https://github.com/boxing/boxrec/blob/master/src/boxrec.class.spec.e2e.ts If the above doesn't help, let me know what method you're using and what parameters. |
Hi, thank you for your fast reply. This is my code (i've copied it from your examples):
Here boxer.name is OK, also boxer.record.win and so on... |
This is output from your example, but I can't get this result :) |
Your code above looks correct. In the first few versions there was a way to output all the data. I left the examples to show what data can be retrieved but currently there is not a way to output all the data like what you have. I haven't decided if it should be added back in. It's nice to have to show what all data there is, but I removed it because to use the data you still have to access it the same way as a getter. |
OK, I understand, it was my misunderstanding. Thank you very much! You've done great work! Keep it going. If I have time I would like to help with your project! |
No problem. Thanks for the compliments. Any help is appreciated. |
t {
_firstBoxerWeight: '',
_outcome: '',
_outcomeByWayOf: '',
_idName: 'Deontay Wilder',
_alias: 'The Bronze Bomber\n',
_record: '40 0 0\n',
_last6: '
_division: ' heavyweight\n',
_career: ' \n \n2008-2018\n',
_location: 'Tuscaloosa, Alabama, USA' }
The text was updated successfully, but these errors were encountered: