Add JSON attribute codec support

Allow to exchange JSON with API, handled as string in the UI.