pixel, to programming
@pixel@social.pixels.pizza avatar

Parsing JSON Data is a fundamental in modern SwiftUI apps. This comprehensive guide covers all the aspects of the Codable protocols in Swift.


https://matteomanferdini.com/swift-parse-json/

pablolarah, to wordpress
@pablolarah@mastodon.social avatar
jmcastagnetto, to random
@jmcastagnetto@mastodon.social avatar

@coolbutuseless -- just saw this on the incognito site :-)

https://x.com/JosiahParry/status/1787871177677115698

{yyjsonr} rewlz in speed and size

hunleyd, to PostgreSQL
@hunleyd@fosstodon.org avatar

#JSON in #PostgreSQL: Revolutionizing Data Flexibility in Your Database - Highgo Software Inc. https://www.highgo.ca/2024/01/15/json-in-postgresql-revolutionizing-data-flexibility-in-your-database/

governa, to linux
@governa@fosstodon.org avatar

: An Interactive Viewer and jq Filter Editor for 🐧

https://linuxtldr.com/installing-jnv/

MichalBryxi, to random
@MichalBryxi@veganism.social avatar

My latest pet : Replace the "free" sharing services with simple solution where one has full control of (a) data collection (b) data storage (c) data sharing/visualisation.

If you want to give this like alternative a go, I'd be happy for any and all comments:

https://github.com/vast-ch/the-mountains-are-calling

MichalBryxi,
@MichalBryxi@veganism.social avatar

For the out there:

  1. There is pre-built solution for locaiton sharing & collection using , but anything that can fire HTTP request would do
  2. There is prepared manual on how-to host your own data on
  3. Client is just a web app that can take the object and splash it on a map
meuon, to random
@meuon@fosstodon.org avatar

JSON is usually beautifully simply and useful. I'm starting to see the same un-necessarily over-complicated nesting of simple data by API vendors as the XML crowd. All I'm missing is Base64encoded JSON inside of Base64encoded JSON.

(Used to see that in the XML world)

meuon,
@meuon@fosstodon.org avatar

New WTF?!? that has me wanting to thwack an API providers team:

In one place it needs (without quotes)

"invoiceTotal": 17.37,

In another it needs; (with quotes)

"invoiceTotal": "17.37",

but if I pass 17.37 (bare) to PHPs json_encode it wraps it in quotes. I can't use JSON_NUMERIC_CHECK because it breaks the things that should be strings like "01" instead of 1.

There are kludgy work arounds... or I can hand code my JSON, but WTF?!?

#PHP #JSON

hamnis, to programming Norwegian
@hamnis@snabelen.no avatar

Released #circe 0.14.7 https://github.com/circe/circe/releases/tag/v0.14.7

It has been a long time coming, but it is finally in maven-central. If you are a user, please read the release notes.

#scala #typelevel #json #release

davidbisset, to wordpress
@davidbisset@phpc.social avatar

TIL about the Block Data API - used for retrieving block editor posts structured as data, with integrations for both the official WordPress REST API and .

Primarily designed for use in decoupled WordPress.

From

https://github.com/Automattic/vip-block-data-api

kubikpixel, to webdev
@kubikpixel@chaos.social avatar

«JASON Canvas:
An open file format for infinite canvas data.»

Is this something new or have I only just discovered it? (I think the data on GitHub is very recent)

🔘 https://jsoncanvas.org

#canvas #json #webdev #jsoncanvas #dev #dataformat #web #data #github

snonux, to random
@snonux@fosstodon.org avatar

I wasn't aware until now, that jq is actually a full blown functional programming language. Originally it was inspired by Haskell and the very first version(s) of jq were actually implemented in Haskell. Only later jq got ported over to C. To have an idea how powerfull the jq language is, there is also a jq implementation purely written in jq: https://github.com/wader/jqjq

kubikpixel, to webdev
@kubikpixel@chaos.social avatar

Awesome jq

A curated list of awesome things built with the JSON processor and turing-complete functional language jq.

./jq https://github.com/fiatjaf/awesome-jq


#json #webdev #jq #list #awesome #dev

rostre, to random
@rostre@emacs.ch avatar

I know that #json was never initially designed for configuration, but is there anything out there that actually works better for nested configuration settings? #yaml seems unsafe and easy to break, and #toml is simple but doesn't handle the nesting well. Perhaps nested configs are just a bad idea and we should stick with #toml?

ecmascript_news, to javascript
@ecmascript_news@mastodon.online avatar
joe, to random

I post a lot of sample code on this blog. My CodePen is full of little snippets of this and that. Quite often, these snippets need data to do something useful. A good example of that is my Lit example from this past week. Coming up with that data can be complicated, though. That is why I created a site for assorted test data. If you want to have a little rummage through it, I also made the git repository public for the site. While I was at it, I also put it behind a Cloudflare proxy to speed it up a little.

Have any questions, comments, etc? Please feel free to drop a comment below.

https://jws.news/2024/i-have-been-making-some-infrastructure-impovements/

#JSON #XML

Do you use Excalidraw, Canvas, both or neither?

After the release of JSON Canvas, I was curious how people handle whiteboarding and graphical notes in Obsidian. Personally, I only use Excalidraw because I was already a user of its web version and because of its support for md and iframes, although I don't like how it handles embedded notes, everything else is easily corrected...

cjerrington, to Powershell
@cjerrington@mstdn.social avatar

I need some help with where we need to export some 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 cases that might really benefit. I also see promise in cases where today I might translate to and then import into . Why do all that if I can query the original directly? Awesome!

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/

#json #commandLine

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".

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • normalnudes
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • rosin
  • slotface
  • ngwrru68w68
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • Leos
  • everett
  • hgfsjryuu7
  • khanakhh
  • GTA5RPClips
  • vwfavf
  • Durango
  • cubers
  • tacticalgear
  • ethstaker
  • cisconetworking
  • tester
  • modclub
  • anitta
  • All magazines