I would like the following yaml kind: bar name: baryaml to be unmarshaled inside the struct Resource type Kind int const ( KIND_FOO Kind = io ...
I would like the following yaml kind: bar name: baryaml to be unmarshaled inside the struct Resource type Kind int const ( KIND_FOO Kind = io ...
I wrote the below code: that opens json file which look likes: {'api_version': None, 'kind': None, 'metadata': {'annotations': .... ..... 'allo ...
I am getting an input json string from a queue to my camel route, I need to unmarshal it to get a java object. After unmarshal I can't access my origi ...
I want to unmarshal a JSON object where one field contains a JSON string into one coherent object. How do I do that in Go? Example: Input: { "foo ...
From front-end I got this example of json: { "properties":{"unknown key": "unknown value","unknown key2": "unknown value 2"} } I start to parse i ...
I am working with an API for a third party tool and it contains custom key names in it's JSON. I also have to work with the API on two different envir ...
Given the code below, is it possible to transform first name while it's being unmarshaled? Say I want to always have it be lowercase whether it is in ...
The code below works perfectly and i am able to get the success value when i remove the namesace xmlns(xmlns="http://w/p-print") from the xml. But whe ...
I am trying to unmarshall a post request payload as array of strings, but it's failing with 400 bad request with the error: The request content wa ...
What could be a unit test case for the s3/sqs event when unmarshalling json to struck in Go? One option that comes to mind is if the "Body" is empty, ...
json file: Struct: my function: It return nothing When i add fmt.Println(studentClasses) after json.Unmarshall... then it return {[]} Error ...
I am trying to call an array of objects from my JSON file but I am always facing an error saying: "cannot unmarshal array into Go value of type config ...
I am currently writing an application that queries a third party API. Previously when I have done this, I have done it the correct way and created a s ...
I am having the typical 'unexpected element (uri:"", local:"stickynote")' JAXB error, although it only shows when I set the event handler on the unmar ...
I am having some trouble with the UnmarshalJSON and MarshalJSON i am not sure i understand them correctly or atleast i have an error that i have not b ...
Here's my sample go playground https://go.dev/play/p/MosQs62YPvI My curl API return 2 kind of return, can any of the ff: or How to unmarshal it ...
I have an problem with decoding an JSON respone. I've tried to solve this problem for a couple off weeks and can't find an working solution online. T ...
I have a YAML file that I am reading in in Golang and unmarshaling to a struct. The file contains several keys, but I only need certain ones. What I a ...
I try to get hands on expirience with jaxb library to parse xml. Here is my code: JmsConfig.class JmsApplication POM So, the issue! When I t ...
I'm trying to unmarshal the following JSON string I can unmarshal it with 2 phases like this. However, I would like to use custom unmarshalJSON but ...