simpliefied serialization to json (not ld)