Masthash

#json

Ivan Rodriguez ♠
5 hours ago

Oof, I'm tapping out. That bug is more like a camouflaged walking stick. I could not find what it is and where it is at.

I still learned about how the
#ActivityPub protocol works, and I would like to talk about how it can be improved. When looking at a Note object, I noticed that its content property uses #HTML as the note's content. Yes, many instances have protections against the inherent risks of an XSS attack, but I'm thinking of a safer way to represent rich text that is meant to be displayed across different platforms.

What if
#JSON was used instead? JSON is used by the AP protocol to represent other objects and activities, so how could JSON be used for representing UI?

Here's how some rich text could be represented in JSON:

[ { "type": "paragraph", "content": [ {"type": "text", "text": "This is a "}, {"type": "bold", "content": [{"type": "text", "text": "test"}]}, {"type": "text", "text": "."} ] } ]


Here is what the snippet above would generate:

This is a test.

What do you think? Feel free to let me know below.

RE:
https://calckey.social/notes/9fj16f4yb13oybi7

Jobs for Developers
7 hours ago

Backbase is hiring Frontend Engineer - R&D

🔧 #typescript #angular #springboot #rest #cicd #html #json
🌎 Hyderabad, India
⏰ Full-time
💰 $100k - $200k (Estimate)
🏢 Backbase

Job details https://jobsfordevelopers.com/jobs/frontend-engineer-r-d-at-backbase-may-8-2023-fefd84?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

MariaDB
3 days ago

👋 #Developers – there’s no need to sacrifice transactions, #data integrity, or reliability when simplifying modern applications.

Get your app up and running in no time with #JSON and temporal tables.

https://bit.ly/3vT9hyl

Ryan Peters
4 days ago

I feel bad for my friend Jason. I keep typing his name as #json.

Jobs for Developers
4 days ago

Backbase is hiring Frontend Engineer - R&D

🔧 #typescript #angular #springboot #rest #cicd #html #json
🌎 Hyderabad, India
⏰ Full-time
💰 $100k - $200k (Estimate)
🏢 Backbase

Job details https://jobsfordevelopers.com/jobs/frontend-engineer-r-d-at-backbase-may-8-2023-fefd84?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Neil Madden
5 days ago

I just wrote a new blog post on “Regular JSON”: https://neilmadden.blog/2023/05/31/regular-json/ #Json #webdev #Security

Jobs for Developers
5 days ago

@_RyekDarkener_ @Fredman Stimmt, Pfand ist ja auch nur ein kapitalistisches Mittel.
Die nächste Frage wäre aber: haben alle Spezies dann dieselben Standards für Datenaustausch? Wenn ja, wäre es #XML, oder #JSON, oder gar das gute alte #CSV?

Andros Fenollosa
6 days ago

Como nos complicamos la vida y lo fácil que es montar una API. Aquí tenéis un tutorial minimalista de como servir un JSON en un Endpoint utilizando un par de minutos y un comando de #python (aunque también podrías utilizar PHP o cualquier lenguaje que disponga de un servidor para jugar).
https://ignore.pl/you_can_serve_static_data_over_http.html
#webdev #html #json

AskUbuntu
1 week ago
Go Time ⏰
1 week ago

JJ is a command line utility that provides a fast and simple way to retrieve or update values from #JSON documents. It's powered by #golang’s GJSON and SJSON under the hood.

It's fast because it avoids parsing irrelevant sections of json, skipping over values that do not apply, and aborts as soon as the target value has been found or updated.

🔗 https://github.com/tidwall/jj

Jan Katins
1 week ago

TIL: #jj a #JSON Stream Editor for the #cli (https://github.com/tidwall/jj), which seems to be an easier syntax than #jq but covers probably most of my json needs.

1 week ago

Gestern beim #JSON-Kurs auch das frühere #tekom-Beispiel zu #SaxonJS »Parkhäuser München« gezeigt.

Lief aber nicht mehr, weil die JSON-URL 01/23 geändert wurde und das kompilierte #XSLT-Stylesheet abgelaufen war. Nun wieder alive: https://datenverdrahten.de/xslt3/saxon-js/parkhaeuser/

Markus Eisele
1 week ago

#jsonformer: A Bulletproof Way to Generate Structured JSON from Language Models https://github.com/1rgs/jsonformer
#LLM #json

Marco Ivaldi
1 week ago

Community reconstruction of the soon-to-be deprecated #JSON #NVD Data Feeds.

This project uses and redistributes data from the NVD API but is not endorsed or certified by the NVD.

https://github.com/fkie-cad/nvd-json-data-feeds

CrateDB
2 weeks ago

Learn how to unleash the power of nested data 🙌

In this video, Georg Traar, Head of Customer Engineering at CrateDB, shows you how to unleash the power of nested data, ingesting and querying JSON Documents with SQL in CrateDB 💡

Watch it now ➡️ https://hubs.ly/Q01QtWjj0

#cratedb #cratedbcloud #db #database #data #iot #monitoring #JSON #SQL

robrich
2 weeks ago

https://marketplace.visualstudio.com/items?itemName=quicktype.quicktype - #VSCode plugin fot #JSON to class definition. Supports TypeScript, Python, Go, Ruby, C#, Java, Swift, Rust, Kotlin, C++, Flow, Objective-C, JavaScript, Elm, and JSON Schema.

Chris :donor:
2 weeks ago

Ich suche (#FediHire) eine/n Mid-Level #Developer, der/die verschiedenste Aufgabenstellungen und Sprachen anfassen kann. Es gibt kleine Scripting- und Software-Projekte in #pyhton, #powershell, #bash, #php, #sql, #javascript, usw. Darüber hinaus brauchen wir häufig API-Connectoren zu Netzwerk- und Security-Produkten, die meist mit #xml (z.B. für SIEM-Themen) und #json (z.B. für Automatisierungen) als Austauschformat nutzen. Fokus-Hersteller sind #ExtremeNetworks und #Fortinet. Interne Tools gibt es u.a. mit #Excel #Macros (#vba / #dotNET). Also wirklich vielfältige größere und kleine Projekte...

Meine Kollegin/Mein Kollege sollte also strukturiert und mit Planung an Projekte herangehen können, anstatt, wie aktuell die Projekte laufen "jede/r, der/die ein bisschen Scripten kann, schreibt irgendwie irgendwas, was niemand anderes mehr brauchbar nutzen kann".

#Vollzeit oder #Teilzeit, #Deutschland (Hauptstandort #Pforzheim), zu großem Prozentsatz #remote möglich.
#Jobs #FediJobs #getFediHired

(Details zur Firma im übergeordneten Toot)

Actually....I originally wrote this app so that all the "jobs" had a "backend" of pure #python and then a separate #gui element that called it. If I just replace those function call with some kind of sync message over the network (#json is one simple idea) I could separate the halves....

Am I reinventing the wheel? It feels like this must exist, but maybe only in the #javascript #web world.

I have to rewrite my single-instance app as a client/server thing. I want it to be extremely lightweight (so if anyone even says "web" anything to me I will completely flip my bonkers, I'm warning you).

The easiest thing is communication through the db, but that's probably a bad idea.

What's a simple, built-in #python network comm thing that isn't building an entire protocol from scratch? Using #flask to send #json? (uh oh, I'm an httpocrite!)

OSiUX
2 weeks ago

Incrementar la version de un project o job template de AWX usando awx-json-bump-version

#Ansible #AnsibleTools #AWX #JSON #Release #SemVer

https://osiux.com/2023-05-22-awx-json-bump-version.html

awx-json-bump-version

To you, what looks like a proper field naming/casing convention in a public JSON data model ?

... so many possibilities ... 🤔​

#webdev #programming #json

FiXato
2 weeks ago

@ajroach42 #jq is great, but through #curl's blog post (https://everything.curl.dev/http/post/json) about adding more #JSON support, I also recently learnt about #jo for creating JSON Output: https://github.com/jpmens/jo

Jobs for Developers
2 weeks ago

Backbase is hiring Frontend Engineer - R&D

🔧 #typescript #angular #springboot #rest #cicd #html #json
🌎 Hyderabad, India
⏰ Full-time
💰 $100k - $200k (Estimate)
🏢 Backbase

Job details https://jobsfordevelopers.com/jobs/frontend-engineer-r-d-at-backbase-may-8-2023-fefd84?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

scy
2 weeks ago

How could I miss out on #VisiData for so long? This might become my new favorite #CLI tool.

If you do _anything_ with data and enjoy working in the terminal, check it out. It can

• provide a #TUI for viewing and editing data in #CSV, #Excel, #SQLite, #JSON, #YAML & #XML files and quite a few more
• sort, filter, join and edit that data, across files and across formats
• convert between the formats (interactively or not)
• record & play macros
• be scripted in #Python

https://www.visidata.org/

Ric
2 weeks ago

Currently working on a fairly array heavy #PHP script and it's reminding me how brilliant it is to be able to just pipe data in and out of associative arrays and #JSON formatted strings without having to mess about with structs or dictionary objects. #Csharp really doesn't come close to PHP for this, and it's so bloody frustrating!

John Bokma
3 weeks ago

Maybe Monoid for Go, Optional JSON fields in Go, and Bash Romance

#go #json #shell

👉 Please retweet if you ❤ Plurrrr. Thanks! 👍

https://plurrrr.com/archive/2020/05/23.html

Max Leibman
3 weeks ago

How do you pronounce JSON? I used to say “jay-sahn," but then I started hearing people on tech podcasts say “Jason.”

But last week I got into a debate with some really serious hard-G “GIF" people, and they brought me around. So, now I pronounce it “Gayson.”


#GIF #JSON #pronunciation

OSiUX
3 weeks ago

automatizar la publicación de status de mastodon a partir de un blog en org-mode usando mastodon-bash-utils

#Bash #Blog #blog2mastodon #curl #jq #JSON #Mastodon #mastodonbashutils #org2mastodon #OrgMode #Post #Status #Toot

https://osiux.com/2023-05-16-mastodon-bash-utils-first-public-release.html

publicar cada post de blog como status de mastodon usando mastodon-bash-utils
Peter Czanik
3 weeks ago

Recent #sudo versions give you both more control and visibility:

https://www.syslog-ng.com/community/b/blog/posts/getting-syslog-ng-4

- #JSON formatted log messages (parsed automagically by @sngose)
- chroot and cwd support
- logging sub-commands

Perfect for your #infosec blue team!

Jobs for Developers
3 weeks ago
André Koot 🐧
3 weeks ago

In #IAM standards Mike Jones mentions

"Following a call for adoption by the restarted JSON Object Signing and Encryption (JOSE) Working Group, I’m pleased to report that the three initial working group specifications have been published."
https://self-issued.info/?p=2335

#json #digitalidentity #idpro

FilippoDeLuca
3 weeks ago

I have been writing a JSONPath implementation running on Circe, but that can be implemented on top of other JSON-like ADTs.

The implementation is a superset of JSONPath as it is fully composable: each sub-expression are an expression themselves .

The advantage is that is much easier to reason about, more powerful and can be composed by multiple sub-expressions that are also valid.

https://github.com/filosganga/jsonpath

#scala #json #circe #jsonpath

Mikey
3 weeks ago

just went down a deep rabbit hole of how to serialize #json in a canonical way, for use with #p2p #cryptography like a future #ssb 🐇 🕳️

i present: https://github.com/ahdinosaur/json-canon

Marcel
4 weeks ago

Der @KoPPeR wechselt seine Instanz und hat einen Export seiner Daten. Die liegen im JSON Format vor. Hat vielleicht jemand eine Idee, wie man das ganze lesbar anzeigen lassen kann?

Lokal wäre wichtig, ein Onlinereader ist da nicht so vertrauenswert.

#json #mastodon #export #backup

ceelight
4 weeks ago

Hallo #json Hacker! Kann mir jemand helfen bei folgendem: Ich möchte das Feld „title“ aus diesem json https://radio.ceehome.net/status-json.xsl als schön formatierte Liste in Wordpress als Block integrieren. Gibt’s da einfaches http-foo oder ähnliches? Any idea?

Es geht darum in meinem Podcast-Radio die aktuell gespielte Folge darstellen zu können. (Das Podcast-Radio findet Ihr unter https://ceecasts.net/radio)

Danke!

Joe B
4 weeks ago

You can call NULL the "billion dollar mistake" all you want, but the real billion dollar mistake is "No trailing commas in #json"

#programming

Khalid ⚡
1 month ago

Spent the morning answering a #JetBrains #dotnet blog reader's question about filtering on a #JSON collection using #EFCore and #sql

Any folks have some thoughts? It turns out this is such a new use case that there isn't query support yet for arrays through LINQ.

https://blog.jetbrains.com/dotnet/2023/02/14/getting-started-entity-framework-core-7-json-support/#remark42__comment-db104e2f-baec-4801-9b33-334fe2586753

Christian Tietze
1 month ago

Maybe this is a case for #jq to pretty-print the #JSON, then #sed/#awk to replace values?

Codidact
1 month ago

A community member is looking for #codereview on a #JSON log formatter for #Python. Is this approach sound? You can post an answer addressing some or all of the (small) body of code shown; this isn't conventional Q&A where you need to have "the answer". Can you help? https://software.codidact.com/posts/288091

What's the best option to lightly store #json nowadays? I need a light document database to store 1) user data, and 2) authentication data. Sort of like a mongodb but as light as #sqlite and it has to work with #php using as little work as possible (so requiring an extra module might not be that desirable on deployments).

Or should I go with sqlite because it just works?

daniel:// stenberg://
1 month ago

All existing #curl CVEs are now available as #JSON: https://curl.se/docs/vuln.json

All individual issues are also available as JSON, like for example CVE-2023-27538 like this: https://curl.se/docs/CVE-2023-27538.json

Enjoy!

Patrick H. Lauke
1 month ago

whenever somebody talks about #json my mind goes to this...

photo of Jason Statham looking tough, with the text JSON over it in a chunky pixel font
Alain MICHEL 🤓
1 month ago

Au cours de ces 30 années, les découvertes de nouveaux dispositifs techniques se sont enchaînées, en commençant par #HTML et #CSS au tout début en1995, puis #XML, puis #SVG en 2001 ; avec l'arrivée de #WebRTC, du #WCAG au début des années 2010, puis de #JSON en 2014 et #ActivityPub en 2018.
Depuis ces 30 années, c'est une suite incessante d'améliorations du #Web initial, sous la gouvernance du consortium #W3C.

Diana Thompson :wordpress:
1 month ago

@Sergio I'm working on how much JSON applies to theme.json. From what I see so far, not all of it does. For instance, I have only been able to apply transitions in CSS. Here is a good reference for what is clearly available now. https://developer.wordpress.org/themes/advanced-topics/theme-json/ #WordPressThemes #JSON

Diana Thompson :wordpress:
1 month ago
DJ Adams
1 month ago

New post: Improving my interactive #jq workflow with ijq, #bash and #tmux.

I'm a big fan of ijq and how it allows me to explore #JSON data interactively with jq expressions. With a small script I have improved my workflow by being able to capture the jq expression from ijq and use it easily on the command line.

https://qmacro.org/blog/posts/2023/04/27/improving-my-interactive-jq-workflow-with-ijq-bash-and-tmux/

Share & enjoy!

a screenshot showing ijq being used to explore some JSON
Maarten Balliauw
1 month ago

What do you do when you need to inspect HTML, XML, JSON, or a JWT while debugging? 🐞
.
.
.
👀
.
.
.
Use Rider 2023.1's new debugger visualizers of course!

Find out more in this post by @khalidabuhakmeh https://blog.jetbrains.com/dotnet/2023/04/27/html-xml-json-and-jwt-visualizers-in-rider-2023-1/ #dotnet #jwt #json

Matthew Graybosch
1 month ago

@m2m Since you're using #Jekyll, you might not need to convert #JSON to #YAML to include #webmentions data when processing posts.

Davy :ferris:
1 month ago

The new major version of jql has finally been released this weekend 🚀 🎉 🔥 !

This is a complete rewrite of the code:
- separate crates (parser / runner / binary)
- nom is used for the parser
- better errors

I started the project in 2018 and it was time to clean-up the code. The previous grammar / logic had some serious limitations.

The performance has also improved https://github.com/yamafaktory/jql/blob/main/PERFORMANCE.md

Bonus: new logo by myself 🐺

https://github.com/yamafaktory/jql

#rust #rustlang #json #cli #tools #dev #release

Logo of jql, a vector image of a simplified jackal head inside a colorful circle.
Mark Gardner ‍:sdf:
1 month ago

@ndw Reading your bio. I’m almost reluctant to point out that the same “worse is better” cycle applies to #markup languages. #JSON was a reaction to #XML, #Markdown was a reaction to #HTML, and both have since acquired layers to add back what they threw away.

Inautilo
2 months ago

#Development #Tools
A list of programming playgrounds · A community-sourced collection of playgrounds for web developers https://ilo.im/12dmwi

_____
#Playground #WebDevelopment #WebDev #Frontend #Backend #HTML #SVG #CSS #JavaScript #TypeScript #JSON #RegEx #Unicode #Git #PHP #Python #Ruby #Rust #SQL #DNS

@lordvalor #json 1000 times. Yaml could have been better but went for "fun" without thinking too much

🦣 lordvalor 💡
2 months ago

you are team #json or #yml ? and why?

QuickType, https://quicktype.io/.

Convert JSON into gorgeous, typesafe code in any language.

It looks super practical and useful.

#json #api

David Bisset
2 months ago

Differences, Advantages, and Drawbacks between JSON5 and #JSON

Context: #WordPress Blocks

https://publishing-project.rivendellweb.net/using-json5-instead-of-json/

Esther Schindler
2 months ago

Want to learn #JSON? These videos can bring you up to speed, with the help of #Redis experts. https://redis.com/blog/learn-json-from-redis-experts/

Khalid ⚡
2 months ago

The release of Json.NET in June 2006 has helped
millions of #dotnet developers work with #JSON. #dotnethistory

The release of Json.NET in June 2006 has helped

millions of #dotnet developers work with #JSON. #dotnethistory
Bertrand Delacretaz
2 months ago

TIL about https://jsonlines.org/ , a newline-delimited JSON format that _jq_ understands as input. Looks much better than CSV for when you need a line-oriented structured text format.
#json #jq #jsonl

corentin.js
2 months ago

A new tool is out : a Docker run to Docker compose converter ! 🥳

Turns docker run commands into docker-compose files!

https://it-tools.tech/docker-run-to-docker-compose-converter

#ittools #javascript #typescript #vue #json #developers #tool #free #opensource #online #github #docker

Mockup of the page Docker run to Docker compose converter in it-tools.tech
Adam Nelson
2 months ago

New Spartan Schema release (v1.1), with actual detailed error messages! You can now use `assertMatchesSchema` to throw an exception on a validation failure, and the exception will contain the full JSON and the exact locations and details of every schema error.

https://deno.land/x/spartanschema@v1.1.1

#JavaScript #Typescript #NodeJS #Deno #JSON

Peter Kaminski
2 months ago

I'm pleased to announce Sylph v1, a simple Python command-line utility to do #ChatGPT via API instead of web.

v1 is not usable unless you speak #JSON natively, but hopefully that will improve.

I iteratively specified it with ~9 prompts over ~2 hours. #GPT4 wrote the code.

The cool thing: the input and output JSON structures are identical, enabling conversational loops. Just append a new message in the output and feed it back as input!

I'm happy to get issues and PRs.

https://github.com/peterkaminski/sylph

Tim Nolte
3 months ago

OK, so for people using the #ActivityPub #WordPress plugin from @pfefferle and are using caching that causes problems with return #JSON to web visitor, instead of #HTML, or HTML to ActivityPub requests instead of JSON, I think I have a working solution. I have just finally got around to testing my theory on my #OpenLiteSpeed server by leveraging a Rewrite Rule. I haven't fully confirmed if the requests are being cached.

1/2

Tim Nolte
3 months ago

@donncha @mwl I've seen other examples of configuring thing such that the #ActivityPub requests are not cached and serve the #JSON but I feel like that will in the end put your #WordPress site at risk of an unintentional overload if you have a popular post. Ideally there should be a cache of both types.

Axel Rauschmayer
3 months ago

quicktype: generate types and converters from JSON, JSON Schema, and GraphQL for many programming languages
https://github.com/quicktype/quicktype
#ES_Next_News #ECMAScript #JavaScript #JSON #GraphQL

Panagiotis Efthymiou
3 months ago

Speed Up ASP.NET Core JSON APIs with Source Generators
Speed Up ASP.NET Core JSON APIs with Source Generators - Using System.Text.Json source generators from .NET 6 to improve JSON API performance

https://khalidabuhakmeh.com/speed-up-aspnet-core-json-apis-with-source-generators

#blog #development #programming #aspnet #json

@khalidabuhakmeh

Ethan Heilman
3 months ago

Just dropped our paper on eprint: OpenPubkey. I welcome any questions/feedback replies

#OpenPubkey adds user-held public keys into OpenID Connect without breaking compatibility. This means users can create digital signatures on the web that are associated with their ID Tokens. Fully signed APIs here we come.

Our protocol is so compatible with existing IDPs that not only have we been using it in production with Google, Okta, and Microsoft IDPs for over a year, but that IDPs can't even tell that OpenPubkey is being used!

#OIDC #JSON #JWS #websec

https://eprint.iacr.org/2023/296.pdf

Axel Rauschmayer
3 months ago

Devalue: (de)serialization beyond JSON.stringify/parse
https://www.npmjs.com/package/devalue
#ES_Next_News #ECMAScript #JavaScript #JSON

Mark Gardner ‍:sdf:
3 months ago

@motomatters You can do a lot with a little #JSON and #Perl

#IKEA #BLÅHAJ #ANSI #terminal

Perl “one-liner” that pulls the URL of the IKEA BLÅHAJ shark toy and displays it as ANSI terminal graphics
David Emmett
3 months ago

So I asked #ChatGPT to write a #Perl script which retrieved a #JSON object from a URL, parsed it, and printed the nodes I wanted.

It returned a very simple, neat script, which retrieved the JSON object, but printed nothing. Because it wasn't parsing the JSON object correctly.

It turned out to be good at producing plausible output which is wrong and non-functional.