I'm using fasterxml java library to parse json data, some of the data is using = instead of : as the key value seperator, e.g. {"key"="foo", "size"=123}, is there a way to let json parser properly parser this kind of data?
customized JSON parser with equal sign
111 Views Asked by fluter At
2
There are 2 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in DESERIALIZATION
- Deserialize XML with optional different name
- how to make aiogram.Message from telethon.Message
- JsonConvert.DeserializeObject with different property types needs to continue even after failing but collect the list of errors
- WebAPI don't deserialize JSON but same payload works in Swagger
- using symfony serializer groups didnt' work as well
- How to Use @JsonView Annotation for nested Object ( DTOs)
- Deserialize a field into 2 fields
- How I deserialize Avro from Kafka with spring boot 2.7.18
- Can ASP.NET Core deserialization set null in property if all children properties are nulls?
- how to fetch data when package structure deleted in source, but in couchbase document, _class with old package structure is present
- Java - Parse enum from api by text description
- How to deserialize json to C# class with arbitrary number of values and attributes
- C# Map JSON Serialization and Deserialization to Reference Object Using Object Property
- Multithreaded deserialization using BinaryFormatter
- Disable DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES for an endpoint
Related Questions in JSON-DESERIALIZATION
- No method found for class java.lang.String in Kafka
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- Support Both Object and Array in Json Otherwise it throws MismatchedInputException
- Ignore NULL values in JsonConvert.Deserialize or JToken.Parse
- C# class mapping for System.Text.Json deserialization
- Java Jackson Deserialization - Custom add to list
- how to make aiogram.Message from telethon.Message
- How to get parent node id from child node id in JSON
- How can I assign the property of class after deserializing the object?
- How do I tell the Jackson JSON deserializer to prefer one field over another when both are present?
- JacksonDeserializer fails when json lacks a boolean property
- Deserialize JSON message in run time
- Deserializing JSON to an object - Whole object not being deserialized
- How to get schema or schema ID of JsonNode when using KafkaJsonSchemaSerde
- Deserialize JSON with nested lists from HttpResponseMessage
Related Questions in FASTERXML
- JsonUnwrapped annotation behaves differently with gson and fasterxml objectmapper
- JsonNode - How to update nested values in array
- How to use lenient mode with FasterXML CBOR?
- How can I decode CBOR-encoded data that uses CBOR byte strings in Java?
- com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0]
- ClassNotFoundException: com.fasterxml.jackson.databind.module.SimpleModule
- Dumping YAML to String
- Customize how @JsonTypeInfo adds type information in serialized JSON
- jackson polymorphic deserialization for non-abstract parent class
- Why YYYY-MM-dd pattern of @JsonFormat serializes 2023-12-31 23:59:59.907 to 2024-12-31 instead of 2023-12-31 with fasterxml?
- How to clone a json content with some modifications using jackson fasterxml
- customized JSON parser with equal sign
- fasterxml jackson databind upgrade to 2.15.2
- ObjectMapper Custom serializer for serializing a List<User> to User object
- How to configure fasterxml's objectMapper to handle empty string "" correctly
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't think that this is a good idea ... but you could examine the source code of the fasterxml, find the JSON parser, and modify it to accept
=as an alternative to:in the appropriate place.(I took a look at the code for myself, and it is complicated. If I was going to go down this rabbit hole, I'd investigate whether it would be feasible to switch to a simpler JSON parser.)
A better idea would be to fix the software (or process) that is producing this "not JSON" so that it actually produces syntactically correct JSON. The point of standard formats like JSON is to facilitate interoperable systems, software, libraries and so on. When people generate data that doesn't conform to the standard format, it subverts that goal. They should be told to stop ... even if they are your paying customers. They are not doing anyone any favors.