Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: 2.1
-
Component/s: JsonParser
-
Labels:
-
Number of attachments :
Description
It would be super cool if it were possible to configure a JsonParser / ObjectMapper to auto detect SMILE vs JSON.
Activity
Tatu Saloranta
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
Tatu Saloranta
made changes -
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Fix Version/s | 2.1 [ 18536 ] | |
| Resolution | Duplicate [ 3 ] |
Yes.
And there is in fact quite of bit of groundwork for this – observe existence of JsonFactory.hasFormat(...), as well as InputAccessor.Std – which are both implemented fully for basic JSON and Smile.
In fact there may already be a unit test that does this, figure out which of multiple formats (as defined by JsonFactory.hasFormat(...) returning best match) is most likely the correct one.
Question then is what would be the best way to make this feature as convenient to use as possible, above and beyond basic support that is in place.