Skip to content
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

Property default values errors out on deserialize #1

Closed
AndiLavera opened this issue Jul 14, 2020 · 1 comment
Closed

Property default values errors out on deserialize #1

AndiLavera opened this issue Jul 14, 2020 · 1 comment

Comments

@AndiLavera
Copy link

Here is a short example:

require "crystalizer/json"

class Test
  property var1 : String = "Hello"
  property map : Bool = false
end

test_json = Crystalizer::JSON.serialize(Test.new)

test = Crystalizer::JSON.deserialize(test_json, to: Test)
puts test.inspect
@j8r
Copy link
Owner

j8r commented Jul 15, 2020

Thank you @andrewc910 , I push a commit to fix this.

@j8r j8r closed this as completed in 1bbf453 Jul 15, 2020
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

No branches or pull requests

2 participants