Adapter redesigned (json, parsers)

Added json for adapter definition.