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_data
returns 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 adict
object.<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=2
and etc.).
- We have refactored the
ciscosparkapi
main package to more clearly articulate what classes and data are being exposed to you for your use. 😎