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

Failing to convert example json referenced in RAML #10

Open
ab73863 opened this issue May 21, 2019 · 0 comments
Open

Failing to convert example json referenced in RAML #10

ab73863 opened this issue May 21, 2019 · 0 comments

Comments

@ab73863
Copy link

ab73863 commented May 21, 2019

Hi,

I tried run the utility against the Example "jukebox-api.raml" . When executing I am getting the following exception
org.codehaus.jettison.json.JSONException: A JSONObject text must begin with '{' at character 1 of jukebox-include-album-songs.sample at org.codehaus.jettison.json.JSONTokener.syntaxError(JSONTokener.java:463) at org.codehaus.jettison.json.JSONObject.<init>(JSONObject.java:206) at org.codehaus.jettison.json.JSONObject.<init>(JSONObject.java:313) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getResponseInfo(RAMLtoSwagger.java:648) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getMethodsDescription(RAMLtoSwagger.java:493) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getSpecificResourceData(RAMLtoSwagger.java:455) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.retMethodsData(RAMLtoSwagger.java:425) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.retMethodsData(RAMLtoSwagger.java:438) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.retMethodsData(RAMLtoSwagger.java:438) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getResources(RAMLtoSwagger.java:338) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.convertToSwagger(RAMLtoSwagger.java:393) at org.macrulez.utils.raml2swagger.App.run(App.java:60) at org.macrulez.utils.raml2swagger.App.main(App.java:36)

The JSON content within "jukebox-include-album-songs.sample" looks to be valid but still the converter is failing to identify it as an valid JSON.

Could you please help in resolving this issue.

Regards
Arun

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

No branches or pull requests

1 participant