Move json parser to helper