Use FSharpLu.Json for API serialization #24

Closed
opened 2019-02-23 16:23:56 +00:00 by danieljsummers · 1 comment
danieljsummers commented 2019-02-23 16:23:56 +00:00 (Migrated from github.com)

Newtonsoft.Json (AKA JSON.NET) handles Options by putting Some or None in a Case property, and the value in the Fields property. FSharpLu.Json renders null for None cases, and the actual value for the Some cases, making for a much more compact format that still ends up with the equivalent value in JavaScript.

Change the API to use FSharpLu.Json for serialization, and update the Vue code to no longer look for the Case and Fields properties.

Newtonsoft.Json (AKA JSON.NET) handles `Option`s by putting `Some` or `None` in a `Case` property, and the value in the `Fields` property. FSharpLu.Json renders `null` for `None` cases, and the actual value for the `Some` cases, making for a much more compact format that still ends up with the equivalent value in JavaScript. Change the API to use FSharpLu.Json for serialization, and update the Vue code to no longer look for the `Case` and `Fields` properties.
danieljsummers commented 2019-02-23 20:11:28 +00:00 (Migrated from github.com)

Fixed; part of v1.1 release

Fixed; part of v1.1 release
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bit-badger/myPrayerJournal#24
No description provided.