jonny, to random
@jonny@neuromatch.social avatar
jonny,
@jonny@neuromatch.social avatar

@vrandecic yes of course! to be concrete - i am trying to fit one array specification's ability to use variables for shape constraints into JSON Schema specifically, so the encoding of the arrays themselves is not really the problem. Eg. it's no problem to specify an n-length array of n-length arrays, that's what i'm already doing. It's also no problem to dynamically generate schemas for a given array spec, or even during validation. The problem is that I can't declare a relationship between the shape constraint based on another, unfortunately i just got confirmation on that from one of the maintainers :( https://github.com/orgs/json-schema-org/discussions/730#discussioncomment-9530451

xtrc, to sysadmin
@xtrc@social.tchncs.de avatar

Just encountered the standard while in touch with our logistics firm. Why the hell is this nothing readable and yet another useless standard that could've been implemented in or something modern....

And the best part is everyone uses a subset or has some customizarions which forces us to implement it again and again

Foxboron, to Bash
@Foxboron@chaos.social avatar

How do you parse json in bash?

Asking for a friend.

(No, jq is not a solution here)

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

: "Luckily there's a specification similar to OpenAPI but directed at defining event-driven APIs. I'm talking about AsyncAPI. It's a specification that lets you define an API that's asynchronous in nature. By using AsyncAPI you can define, among other things, the different topics where events will be dropped, and the shape of the messages that represent each topic.

And this is where things get interesting. The shape of messages or, in other words, its payload, can adhere to specific standards. Without messages, there's no way to communicate events. And, following standards helps to guarantee the correct publishing, transport, and consumption of messages. If messages don't follow any standards, it's hard for developers to understand the shape of the messages. In addition, it's easy for consumers to stop working because, suddenly, messages are being shared in a slightly different format.

Among different message standards, there's one particularly interesting to me. Apache Avro isn't just a theoretical standard. It's also a serialization format. You can say it's a competitor to JSON but specialized in working with event-driven APIs. In the same way you can use JSON Schema to define the shape of JSON data you have Avro Schema to help you specify what Avro message payloads look like."

https://apichangelog.substack.com/p/how-to-document-event-driven-api

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

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 #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)

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


rostre, to random
@rostre@emacs.ch avatar

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

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?

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

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