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

How often is it necessary to create JAYSON objects? #2

Open
gerchicov-bp opened this issue Oct 13, 2016 · 1 comment
Open

How often is it necessary to create JAYSON objects? #2

gerchicov-bp opened this issue Oct 13, 2016 · 1 comment

Comments

@gerchicov-bp
Copy link

Open Tests.swift and look at func testBuild().

I understand that root element should be JAYSON but is it always necessary to call JAYSON(JAYSON(JAYSON(...))) instead of inner Swift literals?

For example, could you explain the difference between j["tree1"] = JAYSON(["index" : "myvalue"]) and j["tree1"] = ["index" : "myvalue"]?

@muukii
Copy link
Collaborator

muukii commented Oct 15, 2016

Thank you.

I understand that root element should be JAYSON

Yes, that's right.

but, The following objects do not need to be wrapped in JAYSON.
JAYSON
JAYSONWritableType

screen shot 2016-10-15 at 13 56 04

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