json objects are returned by the algorithm

Signed-off-by: Vylyb <philipp-hempel@gmx.de>