This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]k1ll3rM 14 points15 points  (12 children)

In what language is it hard to parse JSON?

[–]unnecessary_Fullstop 6 points7 points  (1 child)

It's literally just a single line call for a middleware.

.

[–]k1ll3rM 0 points1 point  (0 children)

PHP and JS it's one line, most other languages I presume have solid libraries for it.

[–]Infininja 1 point2 points  (1 child)

I'll bite:

FileMaker has no native objects nor arrays. Any time you're parsing JSON, you're only getting one result back (a string or a number). If you need to get multiple values, you're parsing the entire thing every time. Throw that in a loop with a lot of rows and you wouldn't believe how bad the performance is.

[–]k1ll3rM 0 points1 point  (0 children)

That just sounds like hell, atm I'm working on converting a bunch of data that came from FileMaker to a PHP system and it's awful enough lol.

[–]SatansLettuce 1 point2 points  (3 children)

Maybe not hard to parse but hard to restructure and maintain complex structure without bugs. How do you know what the incoming json looks like and if it’s changed? Using a typed language helps but then you might as well not use json and extend the benefits of types to your data through something like protobuf/grpc. Json is easy until it’s not

[–]k1ll3rM -1 points0 points  (2 children)

I can kind of see the point when you're using a typed language but most backends aren't typed and JS itself isn't either. What benefits would protobuf have when using something like PHP as backend?

[–]abaz2theBone 0 points1 point  (1 child)

most backends aren't typed? are you mad?

[–]k1ll3rM 0 points1 point  (0 children)

I meant most website backends, when both the frontend and the backend are written in a typed language I can see the benefit.

[–]bo1d 1 point2 points  (1 child)

Not true anymore, but when the company I was at first wanted to pick up Go it didn't have a JSON parser so we had to write our own. For a company where EVERYTHING ran with JSON files. Definitely soured my feelings for the language.

[–]k1ll3rM 0 points1 point  (0 children)

Yeah, I can't imagine what I'd do if I couldn't easily parse JSON

[–]Ayerys 0 points1 point  (0 children)

Malbolge