-1

This code has been removed since it can be copyrighted and is not allowed to do it without any permissions

14
  • Thank you @Basilevs for the correction! :) Oct 19, 2015 at 9:18
  • If you ask for help in conversion, provide a sample of input data.
    – Basilevs
    Oct 19, 2015 at 9:18
  • What's Sparks? Is it sparkjava.com ?
    – Basilevs
    Oct 19, 2015 at 9:21
  • Yes sir, Spark is that! Oct 19, 2015 at 9:21
  • Then, its irrelevant, remove Spark from the title. Also consider removing Java, it is already present in question tags.
    – Basilevs
    Oct 19, 2015 at 9:22

1 Answer 1

0

I suspect your problem is result conversion. From your search* methods you return a string, losing all JSON structure in the process. Return JSON object instead. Consider using Jackson pretty writer to output it.

4
  • Since its about Jackson, is it still possible to make it work with Sparks? Oct 19, 2015 at 9:32
  • There may be something similar.
    – Basilevs
    Oct 19, 2015 at 9:34
  • So I believe, before I start doing thing, I think I have to create some Attributes that I need with getter and setter as first. If i'm correct? Oct 19, 2015 at 9:35
  • I have no idea what are talking about.
    – Basilevs
    Oct 19, 2015 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.