mobileatom, to random
@mobileatom@flipboard.com avatar
ythos, to dotnet
@ythos@dotnet.social avatar

We've just published a series of 17 (!) posts on common patterns in JSON Schema; lots of these have been culled from questions asked in the JSON-Schema Slack channel.

They are written from the perspective of .NET developers who are used to JSON serialization as a code-first exercise, and want to migrate towards schema-first (with generated code examples from Corvus.JsonSchema).

https://endjin.com/blog/2024/05/json-schema-patterns-dotnet-data-object

#dotnet #json #jsonSchema

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

in : 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

#jnv: An Interactive #JSON Viewer and jq Filter Editor for #Linux 🐧

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

MichalBryxi, to random
@MichalBryxi@veganism.social avatar

My latest pet #project: Replace the "free" #location 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 #GoogleLatitude like alternative a go, I'd be happy for any and all comments:

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

#OSS #EmberJS #TheMountainsAreCalling

MichalBryxi,
@MichalBryxi@veganism.social avatar

For the #geeks out there:

  1. There is pre-built solution for locaiton sharing & collection using #LlamaLab #Automate, but anything that can fire HTTP request would do
  2. There is prepared manual on how-to host your own data on #firebase
  3. Client is just a web app that can take the #JSON 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)

#JSON

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?!?

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

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

davidbisset, to wordpress
@davidbisset@phpc.social avatar

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

Primarily designed for use in decoupled WordPress.

From #Automattic

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

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 #jq #json

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


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/

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?

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: 💕

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 #JSON document. It can be used to avoid sending a whole document when only a part has changed. When used in combination with the #HTTP PATCH method, it allows partial updates for HTTP #APIs in a standards compliant way."

JSON Patch #Rust crate:

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

#RustLang #API

clonezone, to random
@clonezone@mastodon.social avatar

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

ks982579, to rust
@ks982579@techhub.social avatar

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

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

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