Convert PROPERTIES to BSON
Turn PROPERTIES files into BSON. One BSON document with the same keys in order; a top-level list is wrapped under the key items and any other value under value.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PROPERTIES files on the dialor turn it to pick what to do
A BSON document built from your properties.Your keys stay in order, and each value keeps its type.
What you get
One BSON file holding a single document. It has the same keys as the PROPERTIES file, in the same order.
Integers, floats, booleans, null, text, nested objects and lists keep their types in the BSON document.
How values are wrapped
BSON needs a document at the top. If the top level is a list, it is wrapped under the key items. Any other top-level value is wrapped under the key value.
What changes
Dates stay text. BSON has a date type, but the conversion does not turn date strings into it.
Integers beyond the signed 64-bit range become floats. Integers inside that range stay integers.
To go the other way, use BSON to PROPERTIES.
PROPERTIES and BSON.What each format is.
The formats
Java Properties
Key and value pairs in the Java properties format.
- Extensions
- .properties
- MIME type
- text
/x -java -properties - Kind
- Text and data
BSON
MongoDB's binary document encoding, JSON with dates and binary fields.
- Extensions
- .bson
- MIME type
- application
/bson - Kind
- Text and data
In your code.The same PROPERTIES to BSON conversion through the API, for your app or your agent.
$ cv convert report.properties report.bson$ cv convert report.properties report.bsonQuestions.What people ask about PROPERTIES to BSON.
Yes. The document has the same keys in the same order as the source.
No. Dates stay text.
It is wrapped under the key items, so the file is still one BSON document.
Integers beyond the signed 64-bit range become floats. Other integers keep their type.