save before replace jansson library
our json library works

memory management doesn't work as expected.