Json serialization for KtbsRoot, base, trace and obsels