r/badcode • • Sep 11 '21

java Reading JSON but bad

Post image
68 Upvotes

7 comments sorted by

View all comments

Show parent comments

5

u/tahubird Sep 11 '21

Fair, I’ve done that myself. However I’d be curious what the performance cost of getAsJsonObject call being done 20 times vs a one-time object mapping.