Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace JSON.mapping by JSON::Serializable. #51

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ dependencies:
inflector:
github: phoffer/inflector.cr
version: ~> 1.0.0
json_mapping:
github: crystal-lang/json_mapping.cr
version: ~> 0.1.0
7 changes: 3 additions & 4 deletions src/liquid/context.cr
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
require "json"
require "json_mapping"
require "./any"

module Liquid
struct Context
JSON.mapping(
inner: Hash(String, JSON::Any)
)
include JSON::Serializable

@inner: Hash(String, JSON::Any)

def initialize
@inner = Hash(String, JSON::Any).new
Expand Down