cjerrington, to Powershell
@cjerrington@mstdn.social avatar

I need some help with #powershell where we need to export some #json values all as strings. So the numbers we have in the object need to be strings, but only are exported as integers.

Example:
{
"SchemaVersion": 1
}

Needs to be

{
"SchemaVersion": "1"
}

cvennevik, to webdev
@cvennevik@hachyderm.io avatar

I want to make a web app for viewing, creating, and modifying entries saved to a local file. I will use it on my old budget Android phone, and I want it to be as performant as I can possibly make it.

What do I use to build it?

#webdev

aral,
@aral@mastodon.ar.al avatar

@cvennevik …And, in case you do decide to go this route, to make it easier for you, I just added .json() and .jsonFile() response helpers to the response objects passed to Kitten routes :)

Example: https://codeberg.org/aral/gists/src/branch/main/kitten-return-json.md

(If you already have Kitten installed, please update it using kitten update to get the new methods.)

Best of luck with your project no matter what you end up using :)

:kitten: 💕

#Kitten #SmallWeb #json #jsonFile #response #helpers #JavaScript #web #dev

jamesog, to random
@jamesog@mastodon.social avatar

“DuckDB as the New jq” is a short but good read. I'd heard of DuckDB but not looked into it. This is a cool use-case.

https://www.pgrs.net/2024/03/21/duckdb-as-the-new-jq/

btaroli,
@btaroli@federate.social avatar

@jamesog thanks for sharing this! I’m going to have to play with it. I have some complex #JSON cases that might really benefit. I also see promise in cases where today I might translate #XLSX to #CSV and then import into #SQLite. Why do all that if I can query the original directly? Awesome!

#DuckDB #jq

janriemer, to rust

JSON Patch

https://jsonpatch.com/

"JSON Patch is a format for describing changes to a document. It can be used to avoid sending a whole document when only a part has changed. When used in combination with the PATCH method, it allows partial updates for HTTP in a standards compliant way."

JSON Patch crate:

https://lib.rs/crates/json-patch

clonezone, to random
@clonezone@mastodon.social avatar

jless is so friggin' useful: https://jless.io/

ks982579, to rust
@ks982579@techhub.social avatar

#Bebop is a binary serialization repo, much faster than #json and supports many languages, including #Rust. The documentation also appears to have been created with #Astro, just a nice touch.

https://github.com/betwixt-labs/bebop/tree/master

davidbisset, to programming
@davidbisset@phpc.social avatar

JSON Canvas is "an open file format for infinite canvas data". #json #canvas #programming #webdev

https://jsoncanvas.org/

"Infinite canvas tools are a way to view and organize information spatially, like a digital whiteboard."

leftybournes, to javascript
@leftybournes@mastodon.online avatar

TIL I've been pronounced JSON wrong.

https://www.youtube.com/watch?v=uR-f4b0G9lo

#json #javascript

davidbisset, to javascript
@davidbisset@phpc.social avatar

A library for converting HTML to JSON, and to HTML, with templating, attributes, and support.

https://github.com/williamtroup/JHson.js

remixtures, to ai Portuguese
@remixtures@tldr.nettime.org avatar

: "In prompt engineering, task decomposition means breaking a complex task into smaller, more manageable components. There are several reasons why this is beneficial:

  • Most AI tools have limitations on the amount of text they can process at once.
  • Large inputs can hurt accuracy, cause memory issues, or lead to the AI getting “lost” in the complexity.
  • Proceeding in smaller chunks allows you to course-correct issues along the way for a better end result.
  • Precision: Smaller prompts give you more control over the AI’s output. You can provide tailored instructions for each step, directing the final result with greater accuracy.

Understanding how to break down complex tasks is essential for interacting effectively with AI tools. Even outside of prompt engineering, we do this naturally in many settings. Writing documentation often starts with a simple outline, expanding into greater detail over time. Similarly, a complex codebase is built through incremental steps, adding components over time. Learning to identify those smaller steps within a complex problem is fundamental to working with AI tools.

In this tutorial, you’ll learn to create a complex tree diagram (in ASCII text) from a JSON block. Breaking this task down into smaller steps will make it easier for the AI to process and will ultimately yield a more accurate and visually appealing diagram."

https://idratherbewriting.com/ai/prompt-engineering-task-decomposition.html

davidbisset, to javascript
@davidbisset@phpc.social avatar

JsonTree.js

🔗 A lightweight #JavaScript library that generates customizable tree views to better visualize #JSON data.

https://github.com/williamtroup/JsonTree.js

fedora, to random
jpmens, to random
@jpmens@mastodon.social avatar

deleted_by_author

  • Loading...
  • ascherbaum,
    @ascherbaum@mastodon.social avatar

    @jpmens "a fragment identifier that is empty or that starts with "/" is to be interpreted as a JSON Pointer"

    sigh

    We get a cross-over of the baddest bugs from both #YAML and #JSON libraries.

    Luke, to RSS
    @Luke@typo.social avatar
    Edent, to bitwarden
    @Edent@mastodon.social avatar

    🆕 blog! “HOWTO: Sort BitWarden Passwords by Date”

    I highly recommend BitWarden as a password manager. It is free, open source, and has a great range of apps and APIs. The one thing it doesn't have is a way to sort your accounts by creation date. I now have over a thousand accounts that I've added - so I wanted to prune away […]

    👀 Read more: https://shkspr.mobi/blog/2024/02/howto-sort-bitwarden-passwords-by-date/

    blog, to bitwarden
    @blog@shkspr.mobi avatar

    HOWTO: Sort BitWarden Passwords by Date
    https://shkspr.mobi/blog/2024/02/howto-sort-bitwarden-passwords-by-date/

    I highly recommend BitWarden as a password manager. It is free, open source, and has a great range of apps and APIs.

    The one thing it doesn't have is a way to sort your accounts by creation date. I now have over a thousand accounts that I've added - so I wanted to prune away some of the older ones.

    So, here's how to do it.

    Export your vault

    In the desktop version of BitWarden, go to File → Export Vault. Choose the JSON format (this doesn't work for CSV) and follow the on-screen instructions.

    Screenshot of the BitWarden export page.

    NOTE! This will save all of your passwords to disk. Do not do this on a shared machine. Delete the file as soon as you are done with it.

    Sort with JQ

    Using the https://jqlang.github.io/jq/ it is possible to search and sort the exported JSON.

    This command pipes your export to JQ. It selects all the items, then it sorts by when the item was last edited. It then displays the name of the account and the date, followed by a newline.

    cat bitwarden.json | jq -r '.items | sort_by(.revisionDate) | .[] | .name, .revisionDate, " " '
    

    Purge!

    You could use the API to delete items based on their ID. Personally, I'd rather go through manually.

    What's next?

    It would be great if BitWarden allowed sorting by date in their UI. Even better if they could sort by usage. Until then, I'll spend every Valentine's Day manually deleting old and unloved accounts.

    https://shkspr.mobi/blog/2024/02/howto-sort-bitwarden-passwords-by-date/

    #bitwarden #HowTo #json #linux

    oblomov, to fediverse
    @oblomov@sociale.network avatar

    Fun fact: had object representation been instead of , little more than a thin wrapper with and would have been sufficient to serve them on the web —statically.

    Luke, to RSS
    @Luke@typo.social avatar

    Finished my #rss #xml file. But is #json widely supported by #feed readers these days?

    aleix, to firefox

    Hey, I want to add something to but didn't work on a extension before.

    Goal: Add tagging of voice to be able to avoid such videos/creators.

    AI voice is probably great for some disabled creators, but it's inaccessible for many others. And it's everywhere. I want us to have a choice.

    If a more experienced would be willing to me I'd greatly appreciate that.

    Please !

    ryguw, to apple

    On Feb 1st, 2024, #Apple released Pkl. Pronounced "pickle", it is a complete configuration scripting language, including a JSON/YAML/XML/more compiler, a language server, bunch of IDE plugins, and of course direct bindings for your favorite programming language, for quick adoption. A #Python binding seems missing.

    I like how a Pkl config's specs and values are colocated. Always hated maintaining separate schemas for very simple configs.

    #pkl #json #yaml #java #kotlin #golang #go #config

    minioctt, to AdobePhotoshop Italian

    Tra i giorni passati fino a ieri, ho fatto delle robine #sperimentali su #MBViewer, era questo che dovevo #scrivere… La prima è stata, più che altro perché mi serviva effettivamente da tempo una piccola #app in grado di fare questa cosa, implementare la lettura del formato di esportazione chat in #JSON di #Telegram. Infatti, le #conversazioni da lì possono essere esportate anche in JSON per usi di manipolazione dati futuri, oltre che HTML per consultazione immediata; però, appunto non c’è ufficialmente un modo per leggere una #chat esportata in quel #formato macchina, e la conversione in HTML statico dopo sarebbe facile ma bruttina: avere un lettore con un’interfaccia a bolle classica so già che può tornarmi utile, perché ho qualche dump non-HTML da parte. 📦️

    A parte la #scocciatura per interpretare la struttura #dati del testo di Telegram e trasporla in #HTML corretto, non è stato complesso… eccetto che c’è un #problema. Il sistema funziona, ma il #programma tende a soffocare male con dump di troppi #messaggi. Dopo poche migliaia, già subentrano #rogne, con l’uso di RAM della scheda del #browser che arriva a più di 1 GB, e il caricamento, se riesce a finire senza che tutto crashi, è veramente lentissimo. Potrei in teoria risolvere la cosa, ma è veramente una #pazzia, dovrei portare ancora di più la codebase all’assurdo per fargli caricare elementi DOM a mano a mano da una struttura che di base è comunque un singolo file tutto in memoria, perché così è il formato… per ora lascio tutto così, purtroppo nessuno mi paga, quindi nessuno godrà al 100%. 😈️

    https://octospacc.altervista.org/wp-content/uploads/2024/02/Screenshot-from-2024-01-24-21-59-14-960x520.pnghttps://octospacc.altervista.org/wp-content/uploads/2024/02/Screenshot-from-2024-01-24-23-02-36-960x254.pnghttps://octospacc.altervista.org/wp-content/uploads/2024/02/Screenshot-from-2024-01-24-23-04-49-960x524.pngComunque, su Firefox anche con file enormi non muore completamente, ma su Chromium dopo quel limite ho avuto solo #spacc. Qui nel #video scrollo l’export completo del vecchio #canale Telegram nella volpe, e sorprendentemente è abbastanza fluido… ma nel momento riuscivo a sentire in sottofondo il rumore del mio hard disk che swappava memoria. 💽️Giusto se volete provare, ho caricato una versione ridimensionata dell’esportazione del canale, con appena un mese e mezzo di messaggi: https://hub.octt.eu.org/MBViewer/#/dataUrl=https://hlb0.octt.eu.org/Misc/ChatExport_2023-12-10_OctoVoLTE_UwjPwbToBapltoHa/result_2311.json|platform=telegram.export. Se avete un vostro dump su un vostro server CORS-enabled, o alternativamente ospitate una copia della mia app sullo stesso (anche localhost), potete ovviamente usarlo… ma quello che dovrei fare è aggiungere un bottone per caricare un file dall’archiviazione del computer. 🔘️

    https://octospacc.altervista.org/2024/02/01/emmebi-telegrammico/

    #app #browser #canale #chat #conversazioni #dati #formato #HTML #JSON #MBViewer #messaggi #pazzia #problema #programma #rogne #scocciatura #scrivere #spacc #sperimentali #Telegram #video

    image/png
    image/png

    simplescreenrecorder-2024-01-25_00.11.13

    fell, (edited ) to gamedevelopment
    @fell@ma.fellr.net avatar

    "Use GLTF for your 3D assets. It's based on JSON. And JSON is great!" they said.

    Well, I regret to inform you that the majority of the game's asset loading times are parsing JSON.

    Yes, decoding meshes, textures and animations and uploading them to the GPU are all faster than parsing the stupid JSON. I hate it.

    #GameDevelopment #Programming #GLTF #OpenGL #GameDev #JSON

    d_run, to Lisp
    @d_run@mastodon.social avatar

    NJSON looks very cool, especially the binding macros. Would love to see something similar in Scheme/Racket.

    https://nyxt.atlas.engineer/article/njson.org

    antolius, to fediverse

    So, I looked into ActivityPub the other day. I wanted to play around with it, maybe make some small project.

    It quickly turned into a rabbit hole of specifications with #ActivityPub#ActivityStreams#JSON-LD → #IRI

    It is at this point that I noticed a lack of native supported for IRI in JVM languages. "Up the spec chain" situation was spotty; I found a couple of libs implementing parts of it. But lacking a standard representation of basic concept such as links seemed troublesome.

    linuxmagazine, to opensource
    @linuxmagazine@fosstodon.org avatar

    From this week's Linux Update newsletter: @mfioretti_en looks at Xidel, a data extraction tool for XML, HTML, and JSON documents https://www.linux-magazine.com/Issues/2023/276/Xidel

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines