Dev json xff v0

First version for analysis. Check the comments.