简体   繁体   English

Lodash for Objective-C,用于过滤json对象或字典

[英]lodash for Objective-C, to filter json object or dictionary

I'm looking for library for Objective-C to extract value from dictionary by filter. 我正在寻找用于Objective-C的库,以按过滤器从字典中提取值。

Is there any library like lodash(it is a JS library) for Objective-C in order to filter JSON object or dictionary? 是否有像lodash(它是JS库)这样的Objective-C库,以便过滤JSON对象或字典?

Sample code: 样例代码:

for (AssetData* data in assestDataArray)
    {
        for (AssetSection * assetSection in data.sections)
        {
            for (AssetField * assetSectionField in assetSection.fields)
            {

            }
        }
     }

try JSONModel - Magical Data Modeling Framework for JSON 尝试JSONModel -JSON的神奇数据建模框架

JSONModel allows rapid creation of smart data models. JSONModel允许快速创建智能数据模型。 You can use it in your iOS, macOS, watchOS and tvOS apps. 您可以在iOS,macOS,watchOS和tvOS应用程序中使用它。 Automatic introspection of your model classes and JSON input drastically reduces the amount of code you have to write. 对模型类和JSON输入的自动内省大大减少了您必须编写的代码量。

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

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