Adding JSON support for bundle format. Draft version.