Expose Spark Data Object's JSON Data & Formalize Package API
A couple of small feature updates in this release:
- We are now exposing the Spark data object's JSON data in three formats ( #48 ): 💯
<spark data object>.json_datareturns a copy of the object's JSON data as anOrderedDict.<spark data object>.to_dict()returns a copy of the object's JSON data as adictobject.<spark data object>.to_json()returns a copy of the object's JSON data as an JSON string. Note: You can pass your favorite Python JSON encoding keyword arguments to this method (likeindent=2and etc.).
- We have refactored the
ciscosparkapimain package to more clearly articulate what classes and data are being exposed to you for your use. 😎