Skip to content

Tumblr: Update range of JSON readlines to extract JSON from JS (Tumblr may have changed structure of JSON)#243

Merged
jekyllbot merged 1 commit intojekyll:masterfrom
karenjho:master
Apr 27, 2016
Merged

Tumblr: Update range of JSON readlines to extract JSON from JS (Tumblr may have changed structure of JSON)#243
jekyllbot merged 1 commit intojekyll:masterfrom
karenjho:master

Conversation

@karenjho
Copy link
Contributor

Tumblr might have changed the structure of its JSON recently. The jekyll Tumblr importer is currently stripping out the ending curly brace (results in an "unexpected token error" with JSON parser).

@parkr
Copy link
Member

parkr commented Apr 14, 2016

Thanks for the PR, @karenjho! What do you think about searching the string for the index of the first {, then finding the last }? Maybe not ideal, but a thought?

@parkr parkr changed the title Update range of JSON readlines (Tumblr may have changed structure of JSON) Tumblr: Update range of JSON readlines to extract JSON from JS (Tumblr may have changed structure of JSON) Apr 27, 2016
@parkr
Copy link
Member

parkr commented Apr 27, 2016

@jekyllbot: merge +bug

@jekyllbot jekyllbot merged commit bc03d65 into jekyll:master Apr 27, 2016
jekyllbot added a commit that referenced this pull request Apr 27, 2016
@jekyll jekyll locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants