HRCoder icon indicating copy to clipboard operation
HRCoder copied to clipboard

YAML support

Open hokster7 opened this issue 11 years ago • 3 comments

hokster7 avatar Mar 21 '14 18:03 hokster7

It's a bit out of scope to build YAML support into the library, but if you have an existing YAML library that can save or load data as an NSDictionary, you should be able to use it with HRCoder by treating it the same way as JSON.

nicklockwood avatar Mar 21 '14 22:03 nicklockwood

I suggest this mainly because YAML as a language specify thing like references and aliases, and was designed from the beginning to be a human-readable format. Definitely not as popular as JSON.

hokster7 avatar Mar 22 '14 01:03 hokster7

The reason I don't support it has nothing to do with popularity, it's just that iOS has built in support for plists and JSON, but no built in support for YAML, so I would have to write my own YAML parser/serialiser which would be more code than the whole HRCoder library.

nicklockwood avatar Mar 22 '14 16:03 nicklockwood