skip to Main Content

Extract a value from JSON string

I'm trying to extract the value of tax_amount from JSON string but this line let taxAmountS = json["tax_amount"] as? String triggers an error. A print out of json (json string) looks like it should work, here it is ["client_secret": pi_3Q5hYZHbqLi,…

VIEW QUESTION

Trying to get the last object from a JSON list

I have the following JSON data : $ cat toto.json { "method": "GET", "path": "/users/sign_in", "status": 500, "exception.class": "NoMethodError", "exception.message": "undefined method `user_azure_activedirectory_v2_omniauth_authorize_path' for #<ActionDispatch::Routing::RoutesProxy:0x00007d6fe7cfd0d0 @scope=#<SessionsController:0x00000000186758>, @routes=#<ActionDispatch::Routing::RouteSet:0x00007d701b857b28>, @helpers=#<Module:0x00007d701b6f38b8>, @script_namer=nil>" } { "method": "GET", "path": "/users/sign_in", "status": 500, "exception.class": "NoMethodError", "exception.message":…

VIEW QUESTION

Getting images from a Json on NuxtJs

So, to simplify my problem, i want to make a personal blog site with nuxtjs, i want to get the postPreview.js to show on the main screen. postPreview.js export default [ { "id": "0", "title": "DEV LOG #0", "image": "/download.jpeg",…

VIEW QUESTION
Back To Top
Search