ws: Cleaner building of control messages
ws: Cleaner building of control messages

Remove the dubios BUILD_INT logic when we want to add non-strings
to a control message, and just return a JsonObject from an interim
function which can be further modified. The simple string-only case
remains the same.

Reviewed-by: Marius Vollmer <bb11c6e942c5cc765df5f04da146b3198127a7a3@redhat.com>

darioajr/cockpit,stefwalter/cockpit,zigitax/cockpit,SotolitoLabs/cockpit,michalskrivanek/cockpit,deryni/cockpit,sgallagher/cockpit,xhad/cockpit,haiyangd/cockpit_view,vanloswang/cockpit,darioajr/cockpit,andreasn/cockpit,evol262/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,jscotka/cockpit,sgallagher/cockpit,netzvieh/cockpit,stefwalter/cockpit,evol262/cockpit,firebitsbr/cockpit,vanloswang/cockpit,kkaempf/cockpit,michalskrivanek/cockpit,deryni/cockpit,petervo/cockpit,SotolitoLabs/cockpit,moolitayer/cockpit,evol262/cockpit,garrett/cockpit,FireDrunk/cockpit,xhad/cockpit,kkaempf/cockpit,garrett/cockpit,andreasn/cockpit,Scribery/cockpit,deryni/cockpit,cockpituous/cockpit,vanloswang/cockpit,andreasn/cockpit,mvollmer/cockpit,harishanand95/cockpit,matobet/cockpit,cockpit-project/cockpit,maxamillion/cockpit,moolitayer/cockpit,dperpeet/cockpit,dperpeet/cockpit,larskarlitski/cockpit,harishanand95/cockpit,larskarlitski/cockpit,mvollmer/cockpit,petervo/cockpit,andreasn/cockpit,kkaempf/cockpit,jscotka/cockpit,fridex/cockpit,evol262/cockpit,nmav/cockpit,andreasn/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,martinpitt/cockpit,martinpitt/cockpit,michalskrivanek/cockpit,firebitsbr/cockpit,larsu/cockpit,dperpeet/cockpit,mvollmer/cockpit,vanloswang/cockpit,moolitayer/cockpit,fridex/cockpit,sub-mod/cockpit,larsu/cockpit,martinpitt/cockpit,Thermionix/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,matobet/cockpit,kkaempf/cockpit,arilivigni/cockpit,zigitax/cockpit,netzvieh/cockpit,petervo/cockpit,cockpituous/cockpit,Thermionix/cockpit,larskarlitski/cockpit,xhad/cockpit,firebitsbr/cockpit,cockpit-project/cockpit,mvollmer/cockpit,denysvitali/cockpit,xhad/cockpit,petervo/cockpit,vanloswang/cockpit,haiyangd/cockpit_view,sgallagher/cockpit,arilivigni/cockpit,arilivigni/cockpit,xhad/cockpit,denysvitali/cockpit,moraleslazaro/cockpit,xhad/cockpit,FireDrunk/cockpit,nmav/cockpit,stefwalter/cockpit,cockpit-project/cockpit,harishanand95/cockpit,mvollmer/cockpit,deryni/cockpit,haiyangd/cockpit_view,netzvieh/cockpit,martinpitt/cockpit,Scribery/cockpit,larsu/cockpit,jscotka/cockpit,matobet/cockpit,haiyangd/cockpit_view,maxamillion/cockpit,denysvitali/cockpit,arilivigni/cockpit,SotolitoLabs/cockpit,larskarlitski/cockpit,andreasn/cockpit,darioajr/cockpit,stefwalter/cockpit,zigitax/cockpit,matobet/cockpit,denysvitali/cockpit,arilivigni/cockpit,harishanand95/cockpit,dperpeet/cockpit,stefwalter/cockpit,jscotka/cockpit,sub-mod/cockpit,Armstrong1992/cockpit,kkaempf/cockpit,sgallagher/cockpit,Scribery/cockpit,nmav/cockpit,harishanand95/cockpit,dperpeet/cockpit,Thermionix/cockpit,larsu/cockpit,cockpituous/cockpit,xhad/cockpit,fridex/cockpit,moraleslazaro/cockpit,firebitsbr/cockpit,petervo/cockpit,evol262/cockpit,jscotka/cockpit,Armstrong1992/cockpit,evol262/cockpit,Thermionix/cockpit,arilivigni/cockpit,fridex/cockpit,zigitax/cockpit,vbatts/cockpit,deryni/cockpit,SotolitoLabs/cockpit,cockpituous/cockpit,maxamillion/cockpit,vanloswang/cockpit,Thermionix/cockpit,sub-mod/cockpit,dperpeet/cockpit,netzvieh/cockpit,martinpitt/cockpit,moolitayer/cockpit,sgallagher/cockpit,petervo/cockpit,mareklibra/cockpit,mareklibra/cockpit,netzvieh/cockpit,sgallagher/cockpit,vbatts/cockpit,Armstrong1992/cockpit,garrett/cockpit,maxamillion/cockpit,arilivigni/cockpit,mareklibra/cockpit,mareklibra/cockpit,denysvitali/cockpit,michalskrivanek/cockpit,larsu/cockpit,matobet/cockpit,darioajr/cockpit,Thermionix/cockpit,Armstrong1992/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,Scribery/cockpit,matobet/cockpit,firebitsbr/cockpit,harishanand95/cockpit,cockpituous/cockpit,FireDrunk/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,garrett/cockpit,dperpeet/cockpit,fridex/cockpit,jscotka/cockpit,deryni/cockpit,maxamillion/cockpit,FireDrunk/cockpit,moraleslazaro/cockpit,sub-mod/cockpit,sub-mod/cockpit,Scribery/cockpit,FireDrunk/cockpit,darioajr/cockpit,fridex/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,larskarlitski/cockpit,haiyangd/cockpit_view,Scribery/cockpit,vbatts/cockpit,stefwalter/cockpit,Armstrong1992/cockpit,Scribery/cockpit,andreasn/cockpit,deryni/cockpit,petervo/cockpit,sgallagher/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,mareklibra/cockpit,zigitax/cockpit,vbatts/cockpit,netzvieh/cockpit,moolitayer/cockpit,vbatts/cockpit,garrett/cockpit,vbatts/cockpit,harishanand95/cockpit,SotolitoLabs/cockpit,larsu/cockpit,vanloswang/cockpit,stefwalter/cockpit,cockpit-project/cockpit,nmav/cockpit,nmav/cockpit