Create json output for search on string+entity

Unless I'm missing something, we should be able to reuse the same code used for "strings" to fix issue #201