Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Resume between Fresh and JSON Resume Format #180

Closed
ishu3101 opened this issue Nov 25, 2016 · 8 comments
Closed

Convert Resume between Fresh and JSON Resume Format #180

ishu3101 opened this issue Nov 25, 2016 · 8 comments
Assignees
Milestone

Comments

@ishu3101
Copy link

ishu3101 commented Nov 25, 2016

You can convert your resume from Fresh format to JSON Resume format using the command hackmyresume convert resume-fresh.json TO resume-jrs.json, but how do you convert from JSON Resume format to Fresh format

@beku
Copy link

beku commented Dec 15, 2016

confirming that jrs to fresh does not work.

hackmyresume always auto detects fresh in the input json, even so that is a jrs format.

@beku
Copy link

beku commented Dec 16, 2016

Workaround over yaml:

hackmyresume BUILD resume.json TO out/resume.all
yaml2json out/resume.yml > resume-fresh.json
cat resume-fresh.json | json_reformat > resume-fresh2.json
mv resume-fresh2.json resume-fresh.json

It looks like hackmyresume convert looks at some sheeds and then concludes wrongly that its JRS. Instead it should look for FRESH's meta info.

"meta": {
    "format": "[email protected]",
    "version": "0.1.0"
}

@ishu3101
Copy link
Author

What is ~/programme/yajl/build/reformatter/json_reformat? How does the yaml workaround convert from json resume to fresh resume format?

@beku
Copy link

beku commented Dec 17, 2016

@ishu3101
json_reformat comes from yajl. It is used here to beautify the JSON from yaml2json.

The yaml is FRESH format.

@ishu3101
Copy link
Author

But what is yajl?

@beku
Copy link

beku commented Dec 17, 2016

@ishu3101 hehe, we are on github.com . The Yajl C JSON parser library is just round the corner ;) https://github.com/lloyd/yajl

You might use www.jsonlint.com likewise, just online.

@DancingQuanta
Copy link

Has this been addressed yet?

@hacksalot
Copy link
Owner

Thanks for the report. This is fixed in 1.9.0 which should be out shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants