Questions tagged [badgerfish]

BadgerFish is a convention for translating an XML document into a JSON object.

9 questions
15
votes
2 answers

Difference between Jettison and Jackson in JBoss

What is the fundmental difference between using RestEasy JSON Provider Jettison (Badgerfish mapping) over Jackson? What is is pros and cons of using the one over the other?
Koekiebox
  • 5,793
  • 14
  • 53
  • 88
3
votes
1 answer

How to convert Badgerfish style JSON to a .NET object or XML in C#?

.NET prefers the Newtonsoft JSON serializer/deserializer when using the REST API. The D&B Direct REST implementation uses the BadgerFish approach (which exist mainly in Java world (jettison namespace) for JSON with some minor variations: D&B…
Rad
  • 933
  • 1
  • 15
  • 32
2
votes
3 answers

Convert JSON to Java Object, how to parse BadgerFish convention with Jackson

Using an API I receive JSON like this (which are now saved to file): [{ "LEI": { "$": "549300Q82NZ9NYNMZT63" }, "Entity": { "LegalName": { "$": "United Nerds in Collaboration of Random Nerdiness AB" …
Erik
  • 21
  • 4
1
vote
2 answers

JSON JAXB Object type serialization

I'm trying to serialize JSON via JAXB using CXF. The problem is when the element to transform is a Object type. @XmlElement(name = "Value") protected Object value; the result in JSON format is "Value":{"@xsi.type":"xs:string","$":"LED"}} Any…
fphilip
  • 159
  • 1
  • 8
0
votes
2 answers

JSON format of result isn't correct

I have developed RESTful web service which is running fine I have used one POJO and one service class that is shown below but the issue is that in the output it is showing extra $ please advise how to correct that right now the output is coming…
0
votes
1 answer

Changing | manipulating json elements or appending namespace prefixes to json elements

thank you in advanced. I need some help manipulating the following: Ultimately, I really need the simplest way to update the parent json element (or any json element) from the code I have. Is there a way to take my var prime output and change…
0
votes
1 answer

How to generate JSONP in Badgerfish format

I'm trying to create a controller for Spring MVC that will return a JSONP in Badgerfish format. My code currently creates the JSONP correctly using Jackson, but I do not know how to specify Badgerfish format. Assuming that callback is the name of…
dchar
  • 1,665
  • 2
  • 19
  • 28
0
votes
1 answer

How to extend BreezeJS to support Badgerfish notation for JSON request data?

I'm looking for a starting point on how to extend BreezeJS (or if it's even possible!) to support sending JSON data using the Badgerfish notation to the server from BreezeJS. I see that BreezeJS has the JsonResultsAdapter - to take a response from…
Adam
  • 28,537
  • 15
  • 60
  • 73
0
votes
0 answers

RestEasy Jettison JAXB/JSon output issue

I am developing a Java EE webapp using JBoss AS 7 and Resteasy. I would like to do the Communication with the Rest Interface using the Jettison JAXB/JSon Provider. As a demo I implemented the following JAXB annotated class: @XmlRootElement(name =…
saberrider
  • 585
  • 3
  • 16