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

Full text wrapped in square brackets #25

Open
smythp opened this issue Mar 22, 2018 · 1 comment
Open

Full text wrapped in square brackets #25

smythp opened this issue Mar 22, 2018 · 1 comment
Labels
1.0 Issues for version 1.0 (current version)

Comments

@smythp
Copy link

smythp commented Mar 22, 2018

When getting a full text, like in this example:

http://corpus-db.org/api/id/108/fulltext

the result is wrapped in square brackets. That means that when loaded into JSON it's a list with 1 item in it (the dictionary) rather than just a dictionary. Think it would be better without the brackets so it wouldn't need to be parsed out.

@JonathanReeve
Copy link
Owner

Good point. I just use one function for getting full text of many texts, and for getting full text of a single text. But a single text shouldn't need to be a list of length one. I'll make a function that returns single texts.

@JonathanReeve JonathanReeve added the 1.0 Issues for version 1.0 (current version) label Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Issues for version 1.0 (current version)
Projects
None yet
Development

No branches or pull requests

2 participants