Adding context to json resources