JsonMergePatch: implement serialization (UNTESTED)

Similarly to what is done for JsonPatch, make JsonMergePatch implement
JsonSerializable.