在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → LoganSquare:一个适用于Android的快速JSON解析与序列化库

LoganSquare:一个适用于Android的快速JSON解析与序列化库

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:0.66M
  • 下载次数:0
  • 浏览次数:10
  • 发布时间:2024-02-29
  • 实例类别:一般编程问题
  • 发 布 人:chenxiaolan
  • 文件格式:.zip
  • 所需积分:2
 相关标签: Android JSON解析 json and 序列化

实例介绍

【实例简介】
LoganSquare:Screaming fast JSON parsing and serialization library for Android.源码下载 LoganSquare是一个基于Jackson流API的JSON解析和序列化库,通过依赖于编译时注解处理来生成代码,使得它能比GSON和Jackson Databind库快400%或更多。使用该库,您可以利用Jackson的流API的强大功能,而不必编写涉及JsonParsers或JsonGenerators的古怪、低级代码。只需将您的模型对象注释为@JsonObject,并将您的字段注释为@JsonFields
【实例截图】
【核心代码】
文件清单
└── LoganSquare-6c5ec5281fb58d85a99413b7b6f55e9ef18a6e06
    ├── BenchmarkDemo
    │   ├── app
    │   │   ├── build.gradle
    │   │   ├── proguard-rules.pro
    │   │   └── src
    │   │       └── main
    │   │           ├── AndroidManifest.xml
    │   │           ├── assets
    │   │           │   ├── largesample.json
    │   │           │   ├── mediumsample.json
    │   │           │   ├── smallsample.json
    │   │           │   └── tinysample.json
    │   │           ├── java
    │   │           │   └── com
    │   │           │       └── bluelinelabs
    │   │           │           └── logansquare
    │   │           │               └── demo
    │   │           │                   ├── MainActivity.java
    │   │           │                   ├── model
    │   │           │                   │   ├── Friend.java
    │   │           │                   │   ├── Image.java
    │   │           │                   │   ├── Name.java
    │   │           │                   │   ├── Response.java
    │   │           │                   │   └── User.java
    │   │           │                   ├── parsetasks
    │   │           │                   │   ├── GsonParser.java
    │   │           │                   │   ├── JacksonDatabindParser.java
    │   │           │                   │   ├── LoganSquareParser.java
    │   │           │                   │   ├── MoshiParser.java
    │   │           │                   │   ├── ParseResult.java
    │   │           │                   │   └── Parser.java
    │   │           │                   ├── serializetasks
    │   │           │                   │   ├── GsonSerializer.java
    │   │           │                   │   ├── JacksonDatabindSerializer.java
    │   │           │                   │   ├── LoganSquareSerializer.java
    │   │           │                   │   ├── MoshiSerializer.java
    │   │           │                   │   ├── SerializeResult.java
    │   │           │                   │   └── Serializer.java
    │   │           │                   └── widget
    │   │           │                       └── BarChart.java
    │   │           └── res
    │   │               ├── drawable-hdpi
    │   │               │   └── ic_launcher.png
    │   │               ├── drawable-mdpi
    │   │               │   └── ic_launcher.png
    │   │               ├── drawable-xhdpi
    │   │               │   └── ic_launcher.png
    │   │               ├── drawable-xxhdpi
    │   │               │   └── ic_launcher.png
    │   │               ├── layout
    │   │               │   └── activity_main.xml
    │   │               ├── values
    │   │               │   ├── dimens.xml
    │   │               │   ├── strings.xml
    │   │               │   └── styles.xml
    │   │               └── values-w820dp
    │   │                   └── dimens.xml
    │   ├── build.gradle
    │   ├── gradle
    │   │   └── wrapper
    │   │       ├── gradle-wrapper.jar
    │   │       └── gradle-wrapper.properties
    │   ├── gradlew
    │   ├── gradlew.bat
    │   └── settings.gradle
    ├── build.gradle
    ├── CHANGELOG.md
    ├── core
    │   ├── build.gradle
    │   └── src
    │       └── main
    │           └── java
    │               └── com
    │                   └── bluelinelabs
    │                       └── logansquare
    │                           ├── annotation
    │                           │   ├── JsonField.java
    │                           │   ├── JsonIgnore.java
    │                           │   ├── JsonObject.java
    │                           │   ├── OnJsonParseComplete.java
    │                           │   └── OnPreJsonSerialize.java
    │                           ├── Constants.java
    │                           ├── internal
    │                           │   └── objectmappers
    │                           │       ├── BooleanMapper.java
    │                           │       ├── DoubleMapper.java
    │                           │       ├── FloatMapper.java
    │                           │       ├── IntegerMapper.java
    │                           │       ├── ListMapper.java
    │                           │       ├── LongMapper.java
    │                           │       ├── MapMapper.java
    │                           │       ├── ObjectMapper.java
    │                           │       └── StringMapper.java
    │                           ├── JsonMapper.java
    │                           ├── LoganSquare.java
    │                           ├── NoSuchMapperException.java
    │                           ├── NoSuchTypeConverterException.java
    │                           ├── ParameterizedType.java
    │                           ├── typeconverters
    │                           │   ├── BooleanBasedTypeConverter.java
    │                           │   ├── CalendarTypeConverter.java
    │                           │   ├── DateTypeConverter.java
    │                           │   ├── DefaultCalendarConverter.java
    │                           │   ├── DefaultDateConverter.java
    │                           │   ├── DefaultDateFormatter.java
    │                           │   ├── DoubleBasedTypeConverter.java
    │                           │   ├── EnumValueTypeConverter.java
    │                           │   ├── FloatBasedTypeConverter.java
    │                           │   ├── IntBasedTypeConverter.java
    │                           │   ├── LongBasedTypeConverter.java
    │                           │   ├── StringBasedTypeConverter.java
    │                           │   └── TypeConverter.java
    │                           └── util
    │                               └── SimpleArrayMap.java
    ├── docs
    │   ├── AnnotationsOnlyModel.md
    │   ├── benchmarks.jpg
    │   ├── Models.md
    │   ├── Parsing.md
    │   ├── PrivateFieldsAndAccessorsModel.md
    │   ├── PrivateFieldsModel.md
    │   ├── Serializing.md
    │   └── TypeConverters.md
    ├── gradle
    │   └── wrapper
    │       ├── gradle-wrapper.jar
    │       └── gradle-wrapper.properties
    ├── gradlew
    ├── gradlew.bat
    ├── LICENSE.txt
    ├── processor
    │   ├── build.gradle
    │   └── src
    │       ├── main
    │       │   ├── java
    │       │   │   └── com
    │       │   │       └── bluelinelabs
    │       │   │           └── logansquare
    │       │   │               └── processor
    │       │   │                   ├── JsonAnnotationProcessor.java
    │       │   │                   ├── JsonFieldHolder.java
    │       │   │                   ├── JsonObjectHolder.java
    │       │   │                   ├── ObjectMapperInjector.java
    │       │   │                   ├── processor
    │       │   │                   │   ├── JsonFieldProcessor.java
    │       │   │                   │   ├── JsonObjectProcessor.java
    │       │   │                   │   ├── MethodProcessor.java
    │       │   │                   │   ├── OnJsonParseCompleteProcessor.java
    │       │   │                   │   ├── OnPreSerializeProcessor.java
    │       │   │                   │   └── Processor.java
    │       │   │                   ├── TextUtils.java
    │       │   │                   ├── type
    │       │   │                   │   ├── collection
    │       │   │                   │   │   ├── ArrayCollectionType.java
    │       │   │                   │   │   ├── ArrayListCollectionType.java
    │       │   │                   │   │   ├── CollectionType.java
    │       │   │                   │   │   ├── HashMapCollectionType.java
    │       │   │                   │   │   ├── LinkedHashMapCollectionType.java
    │       │   │                   │   │   ├── LinkedListCollectionType.java
    │       │   │                   │   │   ├── ListCollectionType.java
    │       │   │                   │   │   ├── MapCollectionType.java
    │       │   │                   │   │   ├── QueueCollectionType.java
    │       │   │                   │   │   ├── SetCollectionType.java
    │       │   │                   │   │   ├── SingleParameterCollectionType.java
    │       │   │                   │   │   └── TreeMapCollectionType.java
    │       │   │                   │   ├── field
    │       │   │                   │   │   ├── BooleanFieldType.java
    │       │   │                   │   │   ├── ByteFieldType.java
    │       │   │                   │   │   ├── DoubleFieldType.java
    │       │   │                   │   │   ├── DynamicFieldType.java
    │       │   │                   │   │   ├── FieldType.java
    │       │   │                   │   │   ├── FloatFieldType.java
    │       │   │                   │   │   ├── IntegerFieldType.java
    │       │   │                   │   │   ├── JsonFieldType.java
    │       │   │                   │   │   ├── LongFieldType.java
    │       │   │                   │   │   ├── NumberFieldType.java
    │       │   │                   │   │   ├── ParameterizedTypeField.java
    │       │   │                   │   │   ├── StringFieldType.java
    │       │   │                   │   │   ├── TypeConverterFieldType.java
    │       │   │                   │   │   └── UnknownFieldType.java
    │       │   │                   │   └── Type.java
    │       │   │                   └── TypeUtils.java
    │       │   └── resources
    │       │       └── META-INF
    │       │           └── services
    │       │               └── javax.annotation.processing.Processor
    │       └── test
    │           ├── java
    │           │   └── com
    │           │       └── bluelinelabs
    │           │           └── logansquare
    │           │               └── processor
    │           │                   ├── AbstractParentTest.java
    │           │                   ├── DateModelTest.java
    │           │                   ├── EnumModelTest.java
    │           │                   ├── LowerCaseNamingPolicyTest.java
    │           │                   ├── model
    │           │                   │   ├── EnumListModel.java
    │           │                   │   ├── ExternalModel$$JsonObjectMapper.java
    │           │                   │   ├── ExternalModel.java
    │           │                   │   ├── NestedCollectionModel.java
    │           │                   │   ├── SimpleExtendedModel.java
    │           │                   │   ├── SimpleGenericModel.java
    │           │                   │   ├── SimpleGenericModelWithExtends.java
    │           │                   │   ├── SimpleGenericStringModel.java
    │           │                   │   ├── SimpleModel.java
    │           │                   │   ├── SimpleModelWithGenericField.java
    │           │                   │   ├── SimpleModelWithoutNullObjects.java
    │           │                   │   ├── TwoParamGenericModel.java
    │           │                   │   └── TwoParamGenericWithStringModel.java
    │           │                   ├── MultipleFieldNamesModelTest.java
    │           │                   ├── NegativeTests.java
    │           │                   ├── NestedCollectionModelTest.java
    │           │                   ├── NonPrivateFieldsAndAccessorsDetectionPolicyTest.java
    │           │                   ├── NonPrivateFieldsDetectionPolicyTest.java
    │           │                   ├── ParentModelTest.java
    │           │                   ├── PrePostProcessingModelTest.java
    │           │                   ├── PrivateFieldModelTest.java
    │           │                   ├── RoundTripTests.java
    │           │                   ├── SimpleCollectionModelTest.java
    │           │                   ├── SimpleGenericExtendsStringModelTest.java
    │           │                   ├── SimpleGenericModelTest.java
    │           │                   ├── SimpleModelTest.java
    │           │                   ├── SimpleWrapperModelTest.java
    │           │                   └── WhitespaceFieldNameModelTest.java
    │           └── resources
    │               ├── generated
    │               │   ├── AbstractParentModel$$JsonObjectMapper.java
    │               │   ├── DateModel$$JsonObjectMapper.java
    │               │   ├── EnumModel$$JsonObjectMapper.java
    │               │   ├── LowerCaseNamingPolicyModel$$JsonObjectMapper.java
    │               │   ├── MultipleFieldNamesModel$$JsonObjectMapper.java
    │               │   ├── NestedCollectionModel$$JsonObjectMapper.java
    │               │   ├── NonPrivateFieldsAndAccessorsFieldDetectionPolicyModel$$JsonObjectMapper.java
    │               │   ├── NonPrivateFieldsFieldDetectionPolicyModel$$JsonObjectMapper.java
    │               │   ├── ParentModel$$JsonObjectMapper.java
    │               │   ├── PrePostProcessingModel$$JsonObjectMapper.java
    │               │   ├── PrivateFieldModel$$JsonObjectMapper.java
    │               │   ├── SimpleCollectionModel$$JsonObjectMapper.java
    │               │   ├── SimpleGenericModel$$JsonObjectMapper.java
    │               │   ├── SimpleGenericModelWithExtends$$JsonObjectMapper.java
    │               │   ├── SimpleModel$$JsonObjectMapper.java
    │               │   ├── SimpleWrapperModel$$JsonObjectMapper.java
    │               │   └── WhitespaceFieldNameModel$$JsonObjectMapper.java
    │               └── model
    │                   ├── bad
    │                   │   ├── FieldWithoutObjectModel.java
    │                   │   ├── GenericModel.java
    │                   │   ├── InvalidTypeConverterModel.java
    │                   │   ├── MethodWithArgsModel.java
    │                   │   ├── MethodWithoutObjectModel.java
    │                   │   ├── MultipleMethodsModel.java
    │                   │   └── PrivateFieldModelWithoutAccessors.java
    │                   └── good
    │                       ├── AbstractParentModel.java
    │                       ├── DateModel.java
    │                       ├── EnumModel.java
    │                       ├── LowerCaseNamingPolicyModel.java
    │                       ├── MultipleFieldNamesModel.java
    │                       ├── NestedCollectionModel.java
    │                       ├── NonPrivateFieldsAndAccessorsFieldDetectionPolicyModel.java
    │                       ├── NonPrivateFieldsFieldDetectionPolicyModel.java
    │                       ├── ParentModel.java
    │                       ├── PrePostProcessingModel.java
    │                       ├── PrivateFieldModel.java
    │                       ├── SimpleCollectionModel.java
    │                       ├── SimpleGenericModel.java
    │                       ├── SimpleGenericModelWithExtends.java
    │                       ├── SimpleGenericStringModel.java
    │                       ├── SimpleModel.java
    │                       ├── SimpleWrapperModel.java
    │                       └── WhitespaceFieldNameModel.java
    ├── README.md
    └── settings.gradle

67 directories, 208 files

实例下载地址

LoganSquare:一个适用于Android的快速JSON解析与序列化库

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警