Re:Unlocking the Power of JSON Patch
by inkyoto on Friday October 18, 2024 @07:10PM
(#41884316)
It quickly gets convoluted since Camry has been produced for more than 30 years with regular model refreshes throughout the years, e.g. 1997, 2003, 2025 etc. JSON Pointer quickly falls short since we now require a selection expression to figure out which year model we need to update in the array of models: «makes.toyota.models[?year == `2025`]» (using JMESPath).
Both, JSONPath or JMESPath, support query expressions whereas JSON Pointer does not.
Both, JSONPath or JMESPath, support query expressions whereas JSON Pointer does not.