json output implemented,

@todo - convert the bstr to str in entry level and modify all
coresponding section