home.social

#json — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #json, aggregated by home.social.

fetched live
  1. Learn everything you need to know about Json via these 93 free HackerNoon blog posts. hackernoon.com/93-blog-posts-t #json

  2. Learn everything you need to know about Json via these 93 free HackerNoon blog posts. hackernoon.com/93-blog-posts-t #json

  3. Learn everything you need to know about Json via these 93 free HackerNoon blog posts. hackernoon.com/93-blog-posts-t #json

  4. Learn everything you need to know about Json via these 93 free HackerNoon blog posts. hackernoon.com/93-blog-posts-t

  5. Learn everything you need to know about Json via these 93 free HackerNoon blog posts. hackernoon.com/93-blog-posts-t #json

  6. Encode, don't stringify — как JSON.stringify вам врёт

    Помните, как лет 5-7 назад все сидели на Yup или Ajv и всех всё устраивало? Потом появилось «Parse, don’t validate», стало настольной книгой для кучи разработчиков и в итоге выстрелило и у нас, в JavaScript и TypeScript. Тысячи библиотек со схемами - лучшее тому подтверждение. Но это уже решённая проблема. А вот что не решено — обратная сторона: JSON.stringify({ price: Infinity }) // => ‘{“price”:null}’ Ни падения, ни предупреждения. Где-то сломалась математика, а клиент получил null и нарисовал пустую ячейку. И это только один пункт из списка: undefined там, где в типах написано string; молча пропавшие ключи; Map и Set, превращающиеся в {}; и вообще отправляется всё - включая поля, которые вы отправлять не собирались. Кажется, за 7 лет разработки я собрал все эти грабли. В статье разбираю каждый пункт и показываю как это чинится - “Encode, don’t stringify”

    habr.com/ru/articles/1070394/

    #json #jsonschema #httpсервер #encoder #stringify

  7. Encode, don't stringify — как JSON.stringify вам врёт

    Помните, как лет 5-7 назад все сидели на Yup или Ajv и всех всё устраивало? Потом появилось «Parse, don’t validate», стало настольной книгой для кучи разработчиков и в итоге выстрелило и у нас, в JavaScript и TypeScript. Тысячи библиотек со схемами - лучшее тому подтверждение. Но это уже решённая проблема. А вот что не решено — обратная сторона: JSON.stringify({ price: Infinity }) // => ‘{“price”:null}’ Ни падения, ни предупреждения. Где-то сломалась математика, а клиент получил null и нарисовал пустую ячейку. И это только один пункт из списка: undefined там, где в типах написано string; молча пропавшие ключи; Map и Set, превращающиеся в {}; и вообще отправляется всё - включая поля, которые вы отправлять не собирались. Кажется, за 7 лет разработки я собрал все эти грабли. В статье разбираю каждый пункт и показываю как это чинится - “Encode, don’t stringify”

    habr.com/ru/articles/1070394/

    #json #jsonschema #httpсервер #encoder #stringify

  8. Encode, don't stringify — как JSON.stringify вам врёт

    Помните, как лет 5-7 назад все сидели на Yup или Ajv и всех всё устраивало? Потом появилось «Parse, don’t validate», стало настольной книгой для кучи разработчиков и в итоге выстрелило и у нас, в JavaScript и TypeScript. Тысячи библиотек со схемами - лучшее тому подтверждение. Но это уже решённая проблема. А вот что не решено — обратная сторона: JSON.stringify({ price: Infinity }) // => ‘{“price”:null}’ Ни падения, ни предупреждения. Где-то сломалась математика, а клиент получил null и нарисовал пустую ячейку. И это только один пункт из списка: undefined там, где в типах написано string; молча пропавшие ключи; Map и Set, превращающиеся в {}; и вообще отправляется всё - включая поля, которые вы отправлять не собирались. Кажется, за 7 лет разработки я собрал все эти грабли. В статье разбираю каждый пункт и показываю как это чинится - “Encode, don’t stringify”

    habr.com/ru/articles/1070394/

    #json #jsonschema #httpсервер #encoder #stringify

  9. HTML over WebSockets: real-time SPAs with barely any JavaScript

    Building a SPA (Single-page Application) is a complex puzzle: a JavaScript framework that draws the view, an API serving JSON, and 2 independent codebases forced to understand each other through contracts. It is an accepted, professionalized scenario. […]
    — by @andros

    🧑‍💻 en.andros.dev/blog/ef4968f5/ht

    #javascript #websocket #html #webdev #spa #api #json #webdev #frontend #web #barely

  10. HTML over WebSockets: real-time SPAs with barely any JavaScript

    Building a SPA (Single-page Application) is a complex puzzle: a JavaScript framework that draws the view, an API serving JSON, and 2 independent codebases forced to understand each other through contracts. It is an accepted, professionalized scenario. […]
    — by @andros

    🧑‍💻 en.andros.dev/blog/ef4968f5/ht

    #javascript #websocket #html #webdev #spa #api #json #webdev #frontend #web #barely

  11. HTML over WebSockets: real-time SPAs with barely any JavaScript

    Building a SPA (Single-page Application) is a complex puzzle: a JavaScript framework that draws the view, an API serving JSON, and 2 independent codebases forced to understand each other through contracts. It is an accepted, professionalized scenario. […]
    — by @andros

    🧑‍💻 en.andros.dev/blog/ef4968f5/ht

    #javascript #websocket #html #webdev #spa #api #json #webdev #frontend #web #barely

  12. HTML over WebSockets: real-time SPAs with barely any JavaScript

    Building a SPA (Single-page Application) is a complex puzzle: a JavaScript framework that draws the view, an API serving JSON, and 2 independent codebases forced to understand each other through contracts. It is an accepted, professionalized scenario. […]
    — by @andros

    🧑‍💻 en.andros.dev/blog/ef4968f5/ht

    #javascript #websocket #html #webdev #spa #api #json #webdev #frontend #web #barely

  13. HTML over WebSockets: real-time SPAs with barely any JavaScript

    Building a SPA (Single-page Application) is a complex puzzle: a JavaScript framework that draws the view, an API serving JSON, and 2 independent codebases forced to understand each other through contracts. It is an accepted, professionalized scenario. […]
    — by @andros

    🧑‍💻 en.andros.dev/blog/ef4968f5/ht

    #javascript #websocket #html #webdev #spa #api #json #webdev #frontend #web #barely

  14. Master theme.json: Building Global Styles for WordPress Block Themes

    uilding a WordPress theme used to mean writing thousands of lines of custom CSS and cluttering your functions.php file with endless add_theme_support()...

    wpfrank.com/master-theme-json-

    #WordPress #json #CSS #theme

  15. Master theme.json: Building Global Styles for WordPress Block Themes

    uilding a WordPress theme used to mean writing thousands of lines of custom CSS and cluttering your functions.php file with endless add_theme_support()...

    wpfrank.com/master-theme-json-

    #WordPress #json #CSS #theme

  16. Master theme.json: Building Global Styles for WordPress Block Themes

    uilding a WordPress theme used to mean writing thousands of lines of custom CSS and cluttering your functions.php file with endless add_theme_support()...

    wpfrank.com/master-theme-json-

    #WordPress #json #CSS #theme

  17. Tired of #JSON eating your bandwidth or latency? Try #CBOR, now with more statistics and figures.

    doi.org/10.1109/TNSM.2026.3722

  18. Tired of #JSON eating your bandwidth or latency? Try #CBOR, now with more statistics and figures.

    doi.org/10.1109/TNSM.2026.3722

  19. Tired of #JSON eating your bandwidth or latency? Try #CBOR, now with more statistics and figures.

    doi.org/10.1109/TNSM.2026.3722

  20. Tired of #JSON eating your bandwidth or latency? Try #CBOR, now with more statistics and figures.

    doi.org/10.1109/TNSM.2026.3722

  21. Tired of #JSON eating your bandwidth or latency? Try #CBOR, now with more statistics and figures.

    doi.org/10.1109/TNSM.2026.3722

  22. Ошибка в расчёте скидки, которую не видно глазами: проверяем ответ API по документации, когда автотестов нет

    Есть класс ошибок, которые проходят все ручные проверки и спокойно доезжают до продакшена. Не пятисотки, не пустые поля, не сломанная структура — с этим как раз всё в порядке. Речь про случаи, когда сервис отвечает статусом 200, все поля на месте, типы правильные, и при этом одно число посчитано неверно. Расскажу, как я проверяю такие ответы, когда в команде нет автотестов и в ближайшее время не появится: писать и поддерживать код некому, а сверка ответа с документацией делается глазами. Подход применим в любом инструменте, я просто покажу его на своём рабочем сценарии — создании заказа с расчётом скидки.

    habr.com/ru/articles/1068580/

    #тестирование_api #проверка_ответов #json #валидация_данных #ручное_тестирование #тесткейсы #логи #elasticsearch #бизнеслогика #регрессионное_тестирование

  23. Ошибка в расчёте скидки, которую не видно глазами: проверяем ответ API по документации, когда автотестов нет

    Есть класс ошибок, которые проходят все ручные проверки и спокойно доезжают до продакшена. Не пятисотки, не пустые поля, не сломанная структура — с этим как раз всё в порядке. Речь про случаи, когда сервис отвечает статусом 200, все поля на месте, типы правильные, и при этом одно число посчитано неверно. Расскажу, как я проверяю такие ответы, когда в команде нет автотестов и в ближайшее время не появится: писать и поддерживать код некому, а сверка ответа с документацией делается глазами. Подход применим в любом инструменте, я просто покажу его на своём рабочем сценарии — создании заказа с расчётом скидки.

    habr.com/ru/articles/1068580/

    #тестирование_api #проверка_ответов #json #валидация_данных #ручное_тестирование #тесткейсы #логи #elasticsearch #бизнеслогика #регрессионное_тестирование

  24. Ошибка в расчёте скидки, которую не видно глазами: проверяем ответ API по документации, когда автотестов нет

    Есть класс ошибок, которые проходят все ручные проверки и спокойно доезжают до продакшена. Не пятисотки, не пустые поля, не сломанная структура — с этим как раз всё в порядке. Речь про случаи, когда сервис отвечает статусом 200, все поля на месте, типы правильные, и при этом одно число посчитано неверно. Расскажу, как я проверяю такие ответы, когда в команде нет автотестов и в ближайшее время не появится: писать и поддерживать код некому, а сверка ответа с документацией делается глазами. Подход применим в любом инструменте, я просто покажу его на своём рабочем сценарии — создании заказа с расчётом скидки.

    habr.com/ru/articles/1068580/

    #тестирование_api #проверка_ответов #json #валидация_данных #ручное_тестирование #тесткейсы #логи #elasticsearch #бизнеслогика #регрессионное_тестирование

  25. 1500 строк красного: как обновление одного плагина на Rust-сервере съедает вечер — и почему виноват diff

    Выходит обновление плагина, он дописывает свои ключи в ваш конфиг и заодно меняет порядок остальных. Через сутки в дискорде жалобы, вы открываете бэкап и текущий конфиг в diff — а он красный целиком. Разбираемся, почему текстовый diff врёт на JSON, и что с этим можно сделать: сравнение с игнором порядка ключей, структурный дифф по путям, до шести файлов сразу и экспорт в JSON Patch.

    habr.com/ru/articles/1068522/

    #rust #c# #net #avalonia #json

  26. 1500 строк красного: как обновление одного плагина на Rust-сервере съедает вечер — и почему виноват diff

    Выходит обновление плагина, он дописывает свои ключи в ваш конфиг и заодно меняет порядок остальных. Через сутки в дискорде жалобы, вы открываете бэкап и текущий конфиг в diff — а он красный целиком. Разбираемся, почему текстовый diff врёт на JSON, и что с этим можно сделать: сравнение с игнором порядка ключей, структурный дифф по путям, до шести файлов сразу и экспорт в JSON Patch.

    habr.com/ru/articles/1068522/

    #rust #c# #net #avalonia #json

  27. 1500 строк красного: как обновление одного плагина на Rust-сервере съедает вечер — и почему виноват diff

    Выходит обновление плагина, он дописывает свои ключи в ваш конфиг и заодно меняет порядок остальных. Через сутки в дискорде жалобы, вы открываете бэкап и текущий конфиг в diff — а он красный целиком. Разбираемся, почему текстовый diff врёт на JSON, и что с этим можно сделать: сравнение с игнором порядка ключей, структурный дифф по путям, до шести файлов сразу и экспорт в JSON Patch.

    habr.com/ru/articles/1068522/

    #rust #c# #net #avalonia #json

  28. #PolitiKit es un #mapa #político interactivo en un solo archivo #HTML. Visualiza #actores como tarjetas movibles con nombre, ciudad, ocupación, #intereses, estatus orgánico y #tags.

    Predice numéricamente simpatías, antipatías, #influencia política y enlaces potenciales. Incluye grafo de relaciones, nube de tags, zoom, pan, historial de cambios y notificaciones de nuevas conexiones.

    Guarda datos en #JSON exporta a PNG/SVG. ( #GPLv3).

    Hecho con Deepseek. #software

    framagit.org/Aspernicus/politi

  29. #PolitiKit es un #mapa #político interactivo en un solo archivo #HTML. Visualiza #actores como tarjetas movibles con nombre, ciudad, ocupación, #intereses, estatus orgánico y #tags.

    Predice numéricamente simpatías, antipatías, #influencia política y enlaces potenciales. Incluye grafo de relaciones, nube de tags, zoom, pan, historial de cambios y notificaciones de nuevas conexiones.

    Guarda datos en #JSON exporta a PNG/SVG. ( #GPLv3).

    Hecho con Deepseek. #software

    framagit.org/Aspernicus/politi

  30. #PolitiKit es un #mapa #político interactivo en un solo archivo #HTML. Visualiza #actores como tarjetas movibles con nombre, ciudad, ocupación, #intereses, estatus orgánico y #tags.

    Predice numéricamente simpatías, antipatías, #influencia política y enlaces potenciales. Incluye grafo de relaciones, nube de tags, zoom, pan, historial de cambios y notificaciones de nuevas conexiones.

    Guarda datos en #JSON exporta a PNG/SVG. ( #GPLv3).

    Hecho con Deepseek. #software

    framagit.org/Aspernicus/politi

  31. #PSA : using #json formatted config files in #python
    Just learned about #json5
    json data format is close to python dict;
    json5 is closer:-)

    it allows trailing commas but It doesn't have python comments so we still have to remember how to use /* comments*/.

    There are other niceties and full conversion back to json if needed.
    #floss #foss #software #openSource #democracy is more than how we vote

  32. #PSA : using #json formatted config files in #python
    Just learned about #json5
    json data format is close to python dict;
    json5 is closer:-)

    it allows trailing commas but It doesn't have python comments so we still have to remember how to use /* comments*/.

    There are other niceties and full conversion back to json if needed.
    #floss #foss #software #openSource #democracy is more than how we vote

  33. #PSA : using #json formatted config files in #python
    Just learned about #json5
    json data format is close to python dict;
    json5 is closer:-)

    it allows trailing commas but It doesn't have python comments so we still have to remember how to use /* comments*/.

    There are other niceties and full conversion back to json if needed.
    #floss #foss #software #openSource #democracy is more than how we vote

  34. #PSA : using #json formatted config files in #python
    Just learned about #json5
    json data format is close to python dict;
    json5 is closer:-)

    it allows trailing commas but It doesn't have python comments so we still have to remember how to use /* comments*/.

    There are other niceties and full conversion back to json if needed.
    #floss #foss #software #openSource #democracy is more than how we vote

  35. #PSA : using #json formatted config files in #python
    Just learned about #json5
    json data format is close to python dict;
    json5 is closer:-)

    it allows trailing commas but It doesn't have python comments so we still have to remember how to use /* comments*/.

    There are other niceties and full conversion back to json if needed.
    #floss #foss #software #openSource #democracy is more than how we vote

  36. I've downloaded an archive of my Mastodon content and want to read and search specific posts in the archive (presumably offline).

    Is anyone willing and able to recommend a Windows compatible app that makes this easily possible?

    I've found a few that seem to display the raw JSON files, but my non-leet brain doesn't find these convenient to browse or search.

    #Mastodon #Activitypub #Json

  37. I've downloaded an archive of my Mastodon content and want to read and search specific posts in the archive (presumably offline).

    Is anyone willing and able to recommend a Windows compatible app that makes this easily possible?

    I've found a few that seem to display the raw JSON files, but my non-leet brain doesn't find these convenient to browse or search.

    #Mastodon #Activitypub #Json

  38. I've downloaded an archive of my Mastodon content and want to read and search specific posts in the archive (presumably offline).

    Is anyone willing and able to recommend a Windows compatible app that makes this easily possible?

    I've found a few that seem to display the raw JSON files, but my non-leet brain doesn't find these convenient to browse or search.

    #Mastodon #Activitypub #Json

  39. I've downloaded an archive of my Mastodon content and want to read and search specific posts in the archive (presumably offline).

    Is anyone willing and able to recommend a Windows compatible app that makes this easily possible?

    I've found a few that seem to display the raw JSON files, but my non-leet brain doesn't find these convenient to browse or search.

    #Mastodon #Activitypub #Json

  40. I've downloaded an archive of my Mastodon content and want to read and search specific posts in the archive (presumably offline).

    Is anyone willing and able to recommend a Windows compatible app that makes this easily possible?

    I've found a few that seem to display the raw JSON files, but my non-leet brain doesn't find these convenient to browse or search.

    #Mastodon #Activitypub #Json

  41. Link Vault aka Organizador de Links

    Una página web en html que permite organizar, clasificar, guardar, exportar e importar enlaces en formatos .csv y .json. Permite generar thumnails temporales de los sitios.

    #Link #Vault HTML:

    - Full bookmark management (add, edit, delete)
    - Tags with filtering and tag manager
    - Folder/group organization
    - 3 layout views (1 column, 2 columns, squares)

    framadrive.org/s/2F7okep2MGB7B

    #gpl #html #management #folders #csv #json #deepseek #AI #opensource

  42. Link Vault aka Organizador de Links

    Una página web en html que permite organizar, clasificar, guardar, exportar e importar enlaces en formatos .csv y .json. Permite generar thumnails temporales de los sitios.

    #Link #Vault HTML:

    - Full bookmark management (add, edit, delete)
    - Tags with filtering and tag manager
    - Folder/group organization
    - 3 layout views (1 column, 2 columns, squares)

    framadrive.org/s/2F7okep2MGB7B

    #gpl #html #management #folders #csv #json #deepseek #AI #opensource

  43. Link Vault aka Organizador de Links

    Una página web en html que permite organizar, clasificar, guardar, exportar e importar enlaces en formatos .csv y .json. Permite generar thumnails temporales de los sitios.

    #Link #Vault HTML:

    - Full bookmark management (add, edit, delete)
    - Tags with filtering and tag manager
    - Folder/group organization
    - 3 layout views (1 column, 2 columns, squares)

    framadrive.org/s/2F7okep2MGB7B

    #gpl #html #management #folders #csv #json #deepseek #AI #opensource

  44. Link Vault aka Organizador de Links

    Una página web en html que permite organizar, clasificar, guardar, exportar e importar enlaces en formatos .csv y .json. Permite generar thumnails temporales de los sitios.

    #Link #Vault HTML:

    - Full bookmark management (add, edit, delete)
    - Tags with filtering and tag manager
    - Folder/group organization
    - 3 layout views (1 column, 2 columns, squares)

    framadrive.org/s/2F7okep2MGB7B

    #gpl #html #management #folders #csv #json #deepseek #AI #opensource

  45. Link Vault aka Organizador de Links

    Una página web en html que permite organizar, clasificar, guardar, exportar e importar enlaces en formatos .csv y .json. Permite generar thumnails temporales de los sitios.

    #Link #Vault HTML:

    - Full bookmark management (add, edit, delete)
    - Tags with filtering and tag manager
    - Folder/group organization
    - 3 layout views (1 column, 2 columns, squares)

    framadrive.org/s/2F7okep2MGB7B

    #gpl #html #management #folders #csv #json #deepseek #AI #opensource

  46. Every line of #YAML specification I have to read makes me want to marry #JSON...

    Say what you want about trailing commas, comments and single-quotes, at least it's trivial to implement semi-correctly