[search] fix json serialization of search objects

This is to match the { tag | value } on the frontend.
2 jobs for 77-dev-search-result-type-fix in 6 minutes and 25 seconds (queued for 1 minute and 33 seconds)
Status Job ID Name Coverage
  Test
failed #1904
docs

00:03:38

failed #1905
test

00:02:47

 
Name Stage Failure
failed
test Test
    |
273 | (fromMaybe 1 psec)
| ^^^^^^^^^^^^^^^^

-- While building package gargantext-0.0.3 (scroll up to its section to see the error) using:
/builds/gargantext/haskell-gargantext/.stack-root/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 build lib:gargantext exe:gargantext-adaptative-phylo exe:gargantext-admin exe:gargantext-cbor2json exe:gargantext-cli exe:gargantext-import exe:gargantext-init exe:gargantext-server exe:gargantext-upgrade test:garg-test --ghc-options ""
Process exited with code: ExitFailure 1
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
docs Test
    |
273 | (fromMaybe 1 psec)
| ^^^^^^^^^^^^^^^^

-- While building package gargantext-0.0.3 (scroll up to its section to see the error) using:
/builds/gargantext/haskell-gargantext/.stack-root/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 build lib:gargantext exe:gargantext-adaptative-phylo exe:gargantext-admin exe:gargantext-cbor2json exe:gargantext-cli exe:gargantext-import exe:gargantext-init exe:gargantext-server exe:gargantext-upgrade --ghc-options ""
Process exited with code: ExitFailure 1
Cleaning up file based variables
ERROR: Job failed: exit code 1