FlatBuffersSwift alternatives and similar libraries
Based on the "JSON" category.
Alternatively, view FlatBuffersSwift alternatives based on common mentions on social networks and blogs.
-
MJExtension
A fast, convenient and nonintrusive conversion framework between JSON and model. Your model class doesn't need to extend any base class. You don't need to modify any model file. -
AlamofireObjectMapper
An Alamofire extension which converts JSON response data into swift objects using ObjectMapper
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of FlatBuffersSwift or a related project?
README
FlatBuffersSwift
Motivation
This project brings FlatBuffers (an efficient cross platform serialization library) to Swift.
One minute introduction
There are three simple steps for you to use FlatBuffersSwift
1. Write a schema file
table List {
people : [Person];
}
table Person {
firstName : string;
lastName : string;
}
root_type List;
2. Generate Swift code
fbsCG
console application can be found here: https://github.com/mzaks/FlatBuffersSwiftCodeGen
To generate, please execute it as following:
fbsCG contacts.fbs contacts.swift
3. Use the generated API
Create objects and encode them
let p1 = Person(firstName: "Maxim", lastName: "Zaks")
let p2 = Person(firstName: "Alex", lastName: "Zaks")
let list = List(people: [p1, p2])
let data = try?list.makeData()
Decode data very efficiently
let newList = List.from(data: data)
let name = newList?.people[0].firstName