Skip to content

Instantly share code, notes, and snippets.

@oliverepper
Created February 21, 2020 17:06
Show Gist options
  • Save oliverepper/b86ef94ff1dbeffa053642f9aaa6f58e to your computer and use it in GitHub Desktop.
Save oliverepper/b86ef94ff1dbeffa053642f9aaa6f58e to your computer and use it in GitHub Desktop.
CodableFileBuffer_example.json.txt
// after initializing
[
// after writing the first codable
[{"id":1, "key": "value_one"},
// after writing the second codable
[{"id":1, "key": "value_one"},{"id":2, "key": "another_value"},
// the data that gets passed to the JSONDecoder looks like this
[{"id":1, "key": "value_one"},{"id":2, "key": "another_value"},]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment