libSerialization: add json and yaml support