Improvement of the json bif

1) Not only global vars.
2) Now you can specify name prefix of the variables.