Added json output; Updated basic example
Updated basic example