schizanon, to webdev
@schizanon@mas.to avatar

> Not being content with alienating only the general purpose enthusiasts, let me now proceed to also alienate my erstwhile enthusiast allies by saying:

> I don’t think is typically the right approach to returning both JSON and for most applications.

https://htmx.org/essays/why-tend-not-to-use-content-negotiation/

changelog, to golang
@changelog@changelog.social avatar

There are umpteen ways to deal with JSON in your terminal. Fx by Anton Medvedev looks like a great one.

It's written in Go, so efficient performance and universal binaries mean easy installation.

It's interactive, so you can visualize the JSON tree structure, folding and unfolding areas that interest you.

Plus, it supports streaming, which helps process large datasets. It has JSON comments support, mouse support & clipboard integration.

#golang #json #cli

🔗 https://fx.wtf

itnewsbot, to EyeHealth
@itnewsbot@schleuss.online avatar

Don’t Look Up, or You’ll See the Time from This VFD Projection Clock - Ceiling clocks were a bit of a thing back in the days when clock radios were a fix... - https://hackaday.com/2023/11/15/dont-look-up-or-youll-see-the-time-from-this-vfd-projection-clock/ #vacuumfluorescentdisplay #clockhacks #projection #json-rpc #ceiling #lenses #clock #stm32 #vfd

nurkiewicz, to javascript
@nurkiewicz@fosstodon.org avatar

jqp: a #TUI playground for exploring #jq: https://github.com/noahgorstein/jqp #JSON #JavaScript

PaulHammond51, to space
@PaulHammond51@fosstodon.org avatar

Ingenuity Mars Helicopter has sent data for its short flight (number 66). No images yet, but it completed the 0.50 meter flight in
23 seconds. Total flight duration is currently 1 hour, 58 minutes and 49 seconds. Data compiled from JPL's JSON URL's

#Marshelicopter #Ingenuity #JSON #data #NASA #JPL #Mars #mars2020

sergi, to python
@sergi@floss.social avatar

Has anybody migrated from to for request/response serialization/deserialization and validation? Or at least given msgspec a try with ?

I heard about https://jcristharif.com/msgspec/ for the first time a few days ago on @talkpython and it seems really attractive!

sos, to random
@sos@mastodon.gamedev.place avatar

deleted_by_author

  • Loading...
  • fell,
    @fell@ma.fellr.net avatar

    @sos is the worst piece of library I have ever seen.

    I once wanted to make a teeny tiny tool that interfaced with a remote . And since I'm familiar with it, I decided to write it in C++. When looking for a library that can do and everyone recommended Boost.

    Yeah, I had to download 180 MB of source code(!) and spend several minutes building the damn thing just to integrate it into my single file program. It was so convoluted and complicated to use that I just gave up.

    On top of that the only promising part of Boost that I was actually interested in, Boost.UI, was removed from it years ago. Thanks for nothing.

    dff, to random
    @dff@fosstodon.org avatar

    Don't miss #SeaGL2023, November 3rd and 4th: https://seagl.org/attend

    dff,
    @dff@fosstodon.org avatar
    hrefna, to fediverse
    @hrefna@hachyderm.io avatar

    If I read between the lines on the software design for #ActivityPub, I don't think there are actually supposed to be servers per se, or more precisely that servers are supposed to be very simple passthroughs that have some forwarding/processing logic?

    If so then this makes some sense, since when AP was being written was a big time for BaaS (Backend as a Service; https://en.wikipedia.org/wiki/Backend_as_a_service ) and that influenced a lot of ideas.

    blaise,
    @blaise@hachyderm.io avatar

    @hrefna
    Having seen this movie several times before, IMHO, it's a case of adopting a spec because it can be interoperable and then having it spin out of control when adoption explodes.
    I've seen it happen with
    #smtp #http #html #json #javascript
    and because the solution started with a limited scope, it was hard to refactor without breaking things.

    czottmann, to random
    @czottmann@norden.social avatar

    Semi-quarterly shoutout to #FloatRates which provides "free online JSON data feed(s) with latest foreign exchange rates which updates daily (once in 12 hours at 12 AM/PM)“.

    Fast, reliable, free, and current enough for (my) personal pet projects. Recommended!

    https://www.floatrates.com/json-feeds.html

    #currency #exchangeRates #json #data

    steve, to fediverse
    @steve@social.technoetic.com avatar

    For the JSON-LD experts out there... does the Compaction algorithm ever produce a document with a null property value in the document body? I know that a null-valued property is treated as if it doesn't exist, but I can't identify the step in the Compaction algo where they are removed (given a null in the pre-compacted document). JSON-LD Playground removes the nulls, but I don't know if this is the normative behavior for all processors or not. #json-ld #activitypub

    mjgardner, to Perl
    @mjgardner@social.sdf.org avatar

    Back at the crumbling Nazi bar, author and trainer brian d foy still occasionally posts about #Perl. This morning, he quipped that he’d like #JSON and #YAML parsing in the @Perl core distribution this decade.

    We’ve had it since 2011: https://x.com/markjgardner/status/1717171698707918875

    alf, to firefox
    @alf@freeradical.zone avatar

    I updated my that gives you the amazing JSON Editor Online (https://jsoneditoronline.org) as a quick local extension.

    The original is probably safe, but I never feel comfortable pasting sensitive data to an online webpage, so I made this to be sure. Also very handy to have locally in the browser I think.

    Check it out here:

    https://github.com/fractalf/json-editor-ex

    https://addons.mozilla.org/en-US/firefox/addon/json-editor-ex/

    SeaGL, to random
    @SeaGL@mastodon.social avatar

    Talk announcement for #SeaGL2023
    @FLOX_advocate presents: "Advanced jq: awk for JSON".
    Details: https://osem.seagl.org/conferences/seagl2023/program/proposals/950
    #SeaGL #awk #json

    itnewsbot, to random
    @itnewsbot@schleuss.online avatar

    Intro to JSON-LD: JSON for the semantic web - JSON-LD looks to unite the promise of self-describing hypermedia with the simple famil... - https://www.infoworld.com/article/3708252/intro-to-json-ld-json-for-the-semantic-web.html#tk.rss_all #softwaredevelopment #webdevelopment #json #rest

    FLOX_advocate, to Seattle
    @FLOX_advocate@floss.social avatar

    I'll be talking about jq and JSON @SeaGL on Saturday, November 4th

    I'm flying up to Seattle to be masked and in person. We're hybrid this year, so you can watch our talks remotely

    This is part 3 of my jq trilogy, "Advanced jq: awk for JSON"

    https://osem.seagl.org/conferences/seagl2023/program/proposals/950

    because I'm looking forward to a fantastic meal while in town :)

    treyhunner, to python
    @treyhunner@mastodon.social avatar

    What's your favorite #Python one-liner?

    cazabon,

    @treyhunner

    python3 -c 'import sys, json; print(json.dumps(json.load(sys.stdin), sort_keys=True, indent=4))'

    #json #pretty #format

    PaulHammond51, to space
    @PaulHammond51@fosstodon.org avatar

    Data from the Mars Helicopter flight #62 during Sol 940 (October 12, 2023) Stretching the envelope continues with a new speed record of 10 meters per second (22.37 mph).

    #Marshelicopter #Ingenuity #JSON #data #NASA #JPL #Mars #mars2020

    lucassatabin, to random
    @lucassatabin@fosstodon.org avatar

    I just released a bugfix version of -data addressing a problem with object field selection in query and default values. Now it should work properly (including the documentation example, which I broke earlier).

    https://github.com/gnieh/fs2-data/releases/tag/v1.9.1

    hamatti, to Software
    @hamatti@mastodon.world avatar

    I find JSON has a great balance between programmatic handling and human readability. But this leads to it being bit verbose.

    I wrote about three tools in my toolbox for handling JSON on command line: jq, jless and fx.

    Do you use something different? Share tips in replies!

    https://hamatti.org/posts/handling-json-on-command-line/

    bc3tech, to dotnet
    @bc3tech@hachyderm.io avatar

    I'm working on a tool that will migrate Newtonsoft.Json usage to System.Text.Json

    I'd like to find a repo that has extensive usage of NSJ but also good UTs and an easy build process so I can vet & work through common/edge cases.

    If you know of something, please send it my way! Thanks!!

    #dotnet #json

    travisfw, to random
    @travisfw@fosstodon.org avatar

    FSON: file system object notation. A binary encoding more backwards compatible than you can possibly imagine.
    A .fson file is a tar of a directory structure where folders are objects and folder contents are the attributes and functions.

    Hundreds of tools have already been written to inspect and manipulate this format!
    And they support compression, binaries, large files, indexing, and more!

    Jeffson is a #FSON file that can be mapped 1⇄1 to #JSON (or, if your name is Jeff, your son).

    biglesp, to python
    @biglesp@mastodon.social avatar

    #TuesdayTooling is back after a long break! This time we take a look at icecream, a #Python debugging tool which is awesome for use with #JSON and dictionary objects.
    https://bigl.es/tooling-tuesday-icecream-python-debugging/

    A cartoon of an ice cream writing code.

    jrefior, to golang
    @jrefior@hachyderm.io avatar

    Golang json encoding tip: a []uint8 or []byte slice will encode as a base64 string, but a fixed-length array of the same type will encode as a list of numbers.

    Compare
    https://go.dev/play/p/mnw_i7249SG
    {"Color":"GsiA/w=="}

    vs
    https://go.dev/play/p/eutQLNrrU5F
    {"Color":[26,200,128,255]}

    Relevant line in package docs:
    "Array and slice values encode as JSON arrays, except that []byte encodes as a base64-encoded string"
    https://pkg.go.dev/encoding/json#Marshal

    byte is an alias for uint8, treated same

    #golang #go #json #encoding

    anderseknert, to golang
    @anderseknert@hachyderm.io avatar

    Anyone hacking #golang code aware of any #JSON marshaller implementation that will let me have any say in what's "pretty"? The default one is waaay to spacious for anything but the most simple of objects. I can't believe I'm coming up with nothing searching for this. Kinda hoping it's just me being a boomer with no idea about how to use the internet? Please say it's so.

  • 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