02 Gotchas (the ones that cost people an evening) (2/3)
device.json
10. No JSON escaping in templates. {title} / {query_raw} / {event.book} containing " produce invalid JSON bodies.
11. In URLs, use {x_enc} for query values and path segments. Raw &, ?, #, + pass through.
12. A typo in a variable is sent literally: {cfg.sever} -> the server receives {cfg.sever}.
13. config.json must be flat. Booleans and decimals become empty strings.
14. A relative dest_dir means inside the plugin folder, not inside the SD root.
15. auth.type: "password" requires a token block, or there's nowhere to save the token.
16. lists_url gets only lists_headers, not browse.headers.
17. details_format is a field path, not the literal "html".
18. Version badges read version from the installed manifest.json only.
19. "Server page size" paging silently skips rows if the server's page size != page_size.
20. A catalog plugin never shows its README on the device.
21. Keys containing dots (e.g. "application/epub+zip") can't be addressed by dotted paths.
22. In catalog rows, compatibility lists are comma-separated strings, not arrays.
23. .md files are shown as plain text, exactly like .txt (lib/Txt/TxtToHtml.cpp). Headings, bold, lists and links appear as typed. For formatted text or clickable links, deliver an EPUB: internal EPUB links can be followed, with Back to return.