Skip to content

Fix parsing for sync gateway #11

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

Closed
wants to merge 3 commits into from
Closed

Conversation

ethanfrey
Copy link
Contributor

The new code works well in line per line, and probably for couchdb 2.0. However, couchbase sync gateway has another peculiarity, in that the "total_rows": X, "offset": Y fields come AFTER the rows, with slightly different sequence of closing brackets :(

I made a small adjustment to the parsing code, so it can handle both variants. And tested on sync gateway and couchdb 1.4.

Still working on a more general solution at https://github.com/ethanfrey/aiojson ...

@kxepal
Copy link
Member

kxepal commented Feb 3, 2016

Seems like a linter issue. Could you fix it?

Thanks for aiojson link, I'll check it soon.

@ethanfrey
Copy link
Contributor Author

Okay, I fixed the linter issue. Last days have been too busy...

@kxepal kxepal closed this in 64e983f Feb 28, 2016
@kxepal
Copy link
Member

kxepal commented Feb 28, 2016

I let myself to squash commits for you. Thanks!

P.S. Yea, busy days here too /:

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

Successfully merging this pull request may close these issues.

2 participants