-
Notifications
You must be signed in to change notification settings - Fork 42
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
Example JSON #10
Comments
This doesn't seem to relevant anymore as the original example has been changed: crystal-by-example/json/json.cr Lines 13 to 23 in aab909a
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result = String.build do |io|
io.json_object do |object|
object.field "address", "Crystal Road 1234"
object.field "location" do
io.json_array do |array|
array << 12.3
array << 34.5
end
end
end
end
Error: undefined method json_object for String::Builder
The text was updated successfully, but these errors were encountered: