[search] fix json serialization of search objects

This is to match the { tag | value } on the frontend.
parent d91758bc
Pipeline #1755 failed with stage
in 6 minutes and 25 seconds