Now json stuff works, but the results are slightly incomplete.. TODO: id system