Skip to content

Expose Spark Data Object's JSON Data & Formalize Package API

Compare
Choose a tag to compare
@cmlccie cmlccie released this 05 Nov 07:10
· 450 commits to main since this release

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 an OrderedDict.
    • <spark data object>.to_dict() returns a copy of the object's JSON data as a dict 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 (like indent=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. 😎