#JSON
Explore tagged Tumblr posts
Text
(…) for very large 64-bit integers, such as randomly generated IDs, a JSON parser that converts integers into floats results in data loss. Go’s encoding/json package does this, for example.
(…)
How often does this actually happen for randomly-generated numbers?
(…)
It turns out that almost all randomly distributed int64 values are affected by round-trip data loss. Roughly, the only numbers that are safe are those with at most 16 digits (although not exactly: 9,999,999,999,999,999, for example, gets rounded up to a nice round 10 quadrillion).
102 notes
·
View notes
Note
Will archives be ever turned into a json ? when you place /archives at the end of a tumblr blog url the archives are visible. will you allow for something like /archives/json ?
Answer: Hello there, @richardmurrayhumblr!
Good news! While we won’t be adding a new endpoint like /archives/JSON, you can already fetch posts as JSON data from our v2 API. You will need to register for an API key first.
Blogs also have a “V1” API, that outputs JSON like this: https://cyle.tumblr.com/api/read/json.
Thank you for your question, and we hope this helps!
Oh, and one last thing. This came to mind as we worked on your question, and now you all need to live with it. Sorry!
The famous Greek tale of … JSON and the Archive-nots.
120 notes
·
View notes
Text
Just gave Patch the Rabbit a sibling.
Her name is Jason.
21 notes
·
View notes
Text
um does anyone know how i can go abt making a .json file like readable? i tried online .csv converters but tht didnt help it's the spotify account data file idk what im doing
12 notes
·
View notes
Text
Test post: [ { "json": " json " } ]
52 notes
·
View notes
Text
Generate SVG-based Flowcharts From JSON Data - jsontr.ee
JSON data can be complex and challenging to understand at a glance. Enter jsontr.ee, a lightweight and easy-to-use JavaScript JSON visualization library that transforms raw JSON into clear, SVG-based tree diagrams (flowcharts). It’s perfect for debugging JSON data, visualizing API responses, and managing hierarchical structures. Features: Supports both arrays and nested objects with intuitive…
2 notes
·
View notes
Text
the amount of context it would take... but yeah, this is certainly some data i have in a json file on my computer now
2 notes
·
View notes
Text
10 notes
·
View notes
Text
In Project Special K, on-screen text strings are taken from a collection of JSON files that look a little like this:
Same with the names of characters, species, and items:
And since last night, if the game language is set to, let's say Hungarian, the game will load only the Hungarian lines, if available, instead of all of them. If not, English is used as a fallback.
Earlier today, I went a step further.
What if you have a list of different options, like the Minecraft-style title screen jokes, and want different amounts of them for different languages? Or the WordStructor madlibs system, where there's simply not the same amount of ways to phrase something in different languages.
The game takes its text data from two different places:
Everything in the text folder
Everything in a given asset's data like names of things and villager catchphrases.
Last night I edited it so that even with that whole multilingual map shown above, if the game language is set to Hungarian it'll find and only load the "hu" lines. And earlier today I added a thing where if a file in the text folder has a name ending in something like "-enus" or "-eude", it'll be skipped if that's not the current language. And on top of that, it doesn't need to contain maps anymore, but can have bare strings:
Last night, that had to be written like in the earlier screenshots.
First, by renaming the file in that screenshot from "title.json" to "title-enus.json", and then making an all new file "title-eunl.json"...
... not only does this make the file look cleaner, but it also allows different languages to offer different amounts — the US English version has only 57 lines (at the time of writing).
The only problem is that you must rename the file, lest it overrule what was loaded prior. This actually happened to me in testing.
Something I also tested because diligence is sexy and cool: if you install the Chocobelle mod (duly credited to funnyshape and @pankendev of course) joke #57 is correctly changed to "your Isabelle is now chocolate-dipped". Because patches have been in there since forever and I'd hate to see them break.
5 notes
·
View notes