JAYSON icon indicating copy to clipboard operation
JAYSON copied to clipboard

How often is it necessary to create JAYSON objects?

Open gerchicov-bp opened this issue 9 years ago • 1 comments

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"]?

gerchicov-bp avatar Oct 13 '16 14:10 gerchicov-bp

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

muukii avatar Oct 15 '16 04:10 muukii