jcbvm / grunt-properties-to-json Goto Github PK
View Code? Open in Web Editor NEWA grunt plugin for converting java property files to JSON files.
License: MIT License
A grunt plugin for converting java property files to JSON files.
License: MIT License
I have a simple file properties:
test = accent éèçéçàç
which is generated into a json file, but the accents are lost as if they were bad encoded
{"test":"accent �������"}
Note : the source file is ISO-8859-1 but the characters are correct in this format
When a line is a comment, it should not be part of the resulting json.
Special chars # ! : and = which are escaped with a backslash should be unescaped before written to json.
Currently we split keys on dot, make this configurable.
Hi. Thank you for this project.
Anyway, I'm using this library but if I use 'splitKeysBy' option, error is being occurred.
[INFO] Running "propertiesToJSON:main" (propertiesToJSON) task
[INFO] Warning: Cannot assign to read only property 'location' of Search conditions� Use --force to continue.
I added just splitKeysBy: '.' and I don't know what property has problem.
Please check this.
Thank you.
I ran into this problem, tried some solutions from SO bu with no luck.
❯ grunt propertiesToJSON --force
Running "propertiesToJSON:main" (propertiesToJSON) task
Warning: Arguments to path.join must be strings Used --force, continuing.
Done, but with warnings.
Here's my gruntfile:
module.exports = function(grunt) {
grunt.initConfig({
propertiesToJSON: {
main: {
src: ['conf/xxx.properties']
}
}
});
grunt.loadNpmTasks('grunt-properties-to-json');
};
Thank you!
Multiline values should correctly be parsed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.