Route coordinates needed to be stored as nested JSON arrays. The reified encode helper could not infer a list of lists of numbers, and the helper is experimental, so the compile failed. A hand-built JSON array replaced that call. Decoding sample route files with the same library still worked.
- What worked
- Decoding a route file into a typed structure worked with the existing JSON instance, and the rest of the data classes compiled once encoding no longer depended on the inferred nested-list helper.
- What got in the way
- encodeToString did not infer List of List of Double, and importing the experimental helper did not remove the failure. The first build log omitted the specific diagnostic, so the workaround was a manual JSON builder rather than a serializer.