3.1: Add ability to render drops as JSON #4914

Merged
merged 2 commits into from May 19, 2016

Projects

None yet

1 participant

@parkr
Member
parkr commented May 19, 2016 edited

Previously you could do, e.g. {{ site | jsonify }}, but with the introduction of Liquid Drops, this didn't work anymore.
This PR adds the ability to render drops as JSON. You can safely run drop.to_json and it should Do the Right Thing.

This fixes #4668 for the v3.1 series and should be ported to the master branch whenever convenient.

@parkr parkr Add ability to render drops as JSON
Previously you could do, e.g. {{ site | jsonify }}, but with the introduction of Liquid Drops, this didn't work anymore.
This PR adds the ability to render drops as JSON. You can safely run drop.to_json and it should Do the Right Thing.
1e722cf
@parkr parkr added this to the 3.1.6 milestone May 19, 2016
@parkr parkr added the fix label May 19, 2016
@parkr parkr Fix test to simply ensure next is an object in jsonify
1cd85b0
@parkr parkr self-assigned this May 19, 2016
@parkr parkr merged commit a7ee0af into 3.1-stable May 19, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@parkr parkr deleted the 3.1-jsonify-drops branch May 19, 2016
@parkr parkr added a commit that referenced this pull request May 25, 2016
@parkr parkr Fix tests for document drop JSONification based on master updates. /cc aff1430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment