Add schemas code, second attempt.

What about using an already existing Json library?