简体   繁体   English

用Magical Record“导出”核心数据

[英]“Export” core-data with Magical Record

I'm using Magical Record and love the "import" functions. 我正在使用Magical Record,并且喜欢“导入”功能。

Is there a similar "export" function that will generate JSON compatible objects using the same field name mapping? 是否有类似的“导出”功能,将使用相同的字段名称映射生成JSON兼容对象?

ie

If I have JSON with a field "id" I can map it to the field "objectID" so that the import will auto create "objectID". 如果我的JSON具有字段“ id”,则可以将其映射到字段“ objectID”,以便导入将自动创建“ objectID”。

Can I export the object with "objectID" and generate a dictionary with a key "id". 我可以导出带有“ objectID”的对象并生成带有键“ id”的字典吗?

Easymapping can do that. Easymapping可以做到这一点。 Take it here https://github.com/lucasmedeirosleite/EasyMapping 把它放在这里https://github.com/lucasmedeirosleite/EasyMapping

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM