Created
January 17, 2017 13:43
-
-
Save aurimasniekis/987f102126a962a11966bb2f9765076a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Slice(T) | |
def to_json | |
to_a.to_json | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no overload matches 'Slice(UInt8)#to_json' with type JSON::Builder | |
Overloads are: | |
- Slice(T)#to_json() | |
- Object#to_json(io : IO) | |
- Object#to_json() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
check https://gist.github.com/bcardiff/58d2c8cec73b0971b6eb990d6311485c