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"]?
Open
Tests.swiftand look atfunc testBuild().I understand that root element should be
JAYSONbut is it always necessary to callJAYSON(JAYSON(JAYSON(...)))instead of inner Swift literals?For example, could you explain the difference between
j["tree1"] = JAYSON(["index" : "myvalue"])andj["tree1"] = ["index" : "myvalue"]?